Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoveImages

Xcode Command Line Tool 写的递归迁移文件夹下的所有图片至指定文件夹的小工具。

使用

可执行文件

  1. 编译生成可执行文件。
  2. 切换至 Products 目录定位可执行文件位置。
  3. 添加可执行权限
chmod +x MoveImages
  1. 运行
  • 交互模式
./MoveImages
  • 或者查看静态执行使用介绍
./MoveImages -h or --help

Xcode 调试运行

  • 直接运行 多余字符是针对终端 log 文本颜色变更,Xcode 中不支持,忽略即可。
  • 或者通过 Edit Scheme 添加参数模拟静态执行方式调试

附录

  • 想修改支持移动文件类型在此修改即可。
  • 终端静态模式运行时,请注意 frompath、topath 为绝对路径,且不要包含多余空格。(建议采用将文件夹拖动至终端的方式来正确填充文件路径)

Demo: GitHub 文章: 掘金

参考链接: https://github.com/DeveloperLx/macOS_Development_Tutorials_translation/blob/master/Command%20Line%20Programs%20on%20macOS%20Tutorial.md

About

Command Line Tool 写的递归迁移文件夹下的所有图片至指定文件夹的小工具。

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages