pub fn try_modification_time<P: AsRef<Path>>(path: P) -> Option<SystemTime> {
    use std::fs::metadata;
    let md = match metadata(path) {
        Ok(md) => md,
        Err(_) => return None,
    };
    md.modified().ok()
}
/// Try to get the metadata for a file.
///
/// In case the current OS does not support the operation, or any kind of file
/// error occurs, `None` is returned.
Try to get the metadata for a file.
In case the current OS does not support the operation, or any kind of file
error occurs, `None` is returned.
Try to get the metadata for a file . In case the current OS does not support the operation or any kind of file error occurs ` None ` is returned .
pub fn try_modification_time<P: AsRef<Path>>(path: P) -> Option<SystemTime> {
    use std::fs::metadata;
    let md = match metadata(path) {
        Ok(md) => md,
        Err(_) => return None,
    };
    md.modified().ok()
}
pub fn try_modification_time < P : AsRef < Path > > ( path : P ) -> Option < SystemTime > { use std :: fs :: metadata ; let md = match metadata ( path ) { Ok ( md ) => md , Err ( _ ) => return None , } ; md . modified ( ) . ok ( ) }
Try to get the metadata for a file.
Try to get the metadata for a file .
path
P
path
P