Skip to main content

files_to_remove

Function files_to_remove 

Source
pub fn files_to_remove(
    files: &[(String, u64)],
    today: &str,
    keep_days: i64,
    max_bytes: u64,
) -> Vec<String>
Expand description

The day files to delete, given what is on disk as (file name, bytes): those older than KEEP_DAYS before today, then the oldest of what is left while the total is over max_bytes. Today’s file is never listed.