1.0.8 • Published 4 years ago

@tinoq/iclean v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

iclean 清理工具

过期文件清理工具

将指定目录下的名称符合条件且修改日期超过指定世界的目录移动到该目录下_trash目录

安装

npm install -g @tinoq/iclean

运行

查看帮助

iclean -h

Usage: iclean [options]

Options:
  -V, --version              output the version number
  -s, --src <path>           【必要】需要清理的文件夹路径
  -d, --dest <path>          【必要】文件转移位置
  -m, --mode <string>        操作模式,复制[cp],移动[mv],查看[ls] (default: "ls")
  -t, --timeout <number>     过期天数,不小于90 (default: 90)
  -r, --retain <number>      已删除文件保留天数,不小于7 (default: 15)
  -f, --force <boolean>      当传入的 timeout,retain 小于限制的值时,强制使用 (default: false)
  -l, --log <boolean>        输出日志 (default: true)
  -v, --verb <boolean>       输出详细日志 (default: false)
  -o, --onlytrash <boolean>  只清理回收站 (default: false)
  -c, --confirm <boolean>    自动确认按参数执行,适用于自动化脚本 (default: false)
  -h, --help                 output usage information
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago