#file #delete #older #days #amount #remove #time

app obliviate

Small utility to delete files older than a certain amount of days

5 releases

0.2.0 Sep 7, 2024
0.1.3 Nov 19, 2019
0.1.2 Aug 12, 2019
0.1.1 Aug 7, 2019
0.1.0 Aug 7, 2019

#173 in Filesystem

MIT license

8KB
135 lines

Obliviate

Small utility to delete files older than a certain amount of days.

Works in its basic functionalities, however error handling is not perfect.

How to install

At the moment is possible to install using cargo install obliviate or building from source. I am also thinking to upload the binary release on Github as well.

Usage

Obliviate
Paolo Marino
Simple utility that removes file older than a certain amount of days.

Usage: obliviate [OPTIONS] <PATH>...

Arguments:
  <PATH>...  Path(s) where to look for files to delete.

Options:
  -a, --age <AGE>  Number of days the file should be old to be removed. [default: 30]
  -d, --dry-run    When provided no files are deleted.
  -v, --verbose    Outputs verbose logs to track which files are deleted.
  -h, --help       Print help
  -V, --version    Print version

Changelog

0.2.0

  • Bump libraries
  • Support multiple paths
  • Improve performances

0.1.3

  • Remove empty folder after removing files

0.1.2

  • Main usable version

Note

The utility has been only tested on macOS 10.14.5. However the standard library is used so it should work on other platforms as well.

Contribute

Bug or feature requests are more than welcome, I will try to followup on them. Also PRs are welcome in case you feel you want to fix/add features.

Dependencies

~1–11MB
~67K SLoC