Structs§
Enums§
- Retention
Reason - Reason why a file was kept by the retention policy.
Functions§
- get_
file_ creation_ time - Gets the modification time of a file, falling back to creation time.
- move_
to_ trash - Moves a file to the trash directory.
- rotate_
files - Rotates files in a directory based on retention policies.
- scan_
files - Scans a directory for files and returns them sorted by creation time (newest first).
- select_
files_ to_ keep - select_
files_ to_ keep_ with_ datetime - select_
files_ to_ keep_ with_ reasons - Selects files to keep with reasons, using a specific datetime as “now”.