4 个版本
0.1.3 | 2019年11月19日 |
---|---|
0.1.2 | 2019年8月12日 |
0.1.1 | 2019年8月7日 |
0.1.0 | 2019年8月7日 |
#7 in #older
8KB
125 行
抹除
用于删除超过一定天数的老文件的轻量级工具。
基本功能正常工作,但错误处理并不完美。
如何安装
目前可以通过 cargo install obliviate
或从源码构建来安装。我还在考虑将二进制发布版本上传到 Github。
使用方法
Obliviate 0.1.0
Paolo Marino
Simple utility that removes file older than a cerain amount of days.
USAGE:
obliviate [FLAGS] [OPTIONS] <PATH>
FLAGS:
-d, --dry-run When provided no files are deleted.
-h, --help Prints help information
-V, --version Prints version information
-v Sets the level of verbosity
OPTIONS:
-a, --age <AGE> Number of days the file should be old to be removed. [default: 30]
ARGS:
<PATH> Path where to look for file to delete
变更日志
0.1.2
- 主要可用版本
0.1.3
- 删除文件后删除空文件夹
注意
该工具仅在 macOS 10.14.5 上进行了测试。然而,使用了标准库,因此它应该在其他平台上也能工作。
贡献
欢迎提出错误或功能请求,我将尽力跟进。如果您觉得需要修复或添加功能,也欢迎提交 PR。
依赖关系
~0.7–1MB