Skip to main content

last_modified_time_from_files

Function last_modified_time_from_files 

Source
pub fn last_modified_time_from_files(paths: &[PathBuf]) -> Result<u64>
Expand description

Returns the most recent modification time from a list of file paths.

This function checks all provided paths in parallel and returns the newest modification timestamp. Files that cannot be opened are silently ignored.

§Arguments

  • paths - Slice of file paths to check

§Returns

Returns the newest modification time in seconds since Unix epoch, or 0 if no files could be read.