Skip to content

Small utility to delete files on time basis in a folder

License

Notifications You must be signed in to change notification settings

pmarino90/obliviate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Small utility to delete files on time basis in a folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages