Redwood is a command-line Python utility designed to document, check, and delete files in folder trees, based on age.
The identification is done based on age, and Redwood will log all the steps of the process and all the files.
Usage: ./redwood.py < options >
-h, --help show this help message and exit
-c, --clean Clean logfile first?
-d DIRECTORY, --directory=DIRECTORY
Target Directory(s). If you wish
to include multiple directories, seperate
them using multiple -d arguments
-e, --empty Flag empty directories as well?
--delete Delete flagged files?
--force Whether or not to ask for confirmation when
deleting files. If this flag is included,
it will NOT ask for confirmation.
-l LOGFILE, --logfile=LOGFILE
Directory for the logfile
-o OPTIONFILE, --optionfile=OPTIONFILE
Which config file to use
-r REPORT, --report=REPORT
Directory for the report
--reverse Whether or not to pick files that are newer
or older than the specified time. If this
option is included, any files that are newer
than the time set in .redwoodrc will be flagged
or deleted, depending on other options.
-t TRASH, --trash=TRASH
Location for trash. If this flag is present
redwood will move old files to this directory
instead of deleting them.