get_modified_time

Function get_modified_time 

Source
pub fn get_modified_time(path: &Path) -> Result<SystemTime>
Expand description

Gets the modification time of a file.

§Arguments

  • path - The path to the file

§Returns

The modification time as a SystemTime

§Errors

Returns an error if the file metadata cannot be read