Crate prune_backup

Crate prune_backup 

Source

Structs§

FileInfo
RetentionConfig

Enums§

RetentionReason
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”.