/// Sets the cached timestamp values.  The filesystem should provide values which are truncated
/// to the filesystem's maximum supported granularity.
Sets the cached timestamp values.  The filesystem should provide values which are truncated
to the filesystem's maximum supported granularity.
Sets the cached timestamp values . The filesystem should provide values which are truncated to the filesystem ' s maximum supported granularity .
pub fn update_timestamps(
        &self,
        creation_time: Option<Duration>,
        modification_time: Option<Duration>,
    ) {
        if let (None, None) = (creation_time.as_ref(), modification_time.as_ref()) {
            return;
        }
        let mut inner = self.inner.lock().unwrap();
        inner.creation_time = creation_time.or(inner.creation_time);
        inner.modification_time = modification_time.or(inner.modification_time);
    }
pub fn update_timestamps ( & self , creation_time : Option < Duration > , modification_time : Option < Duration > , ) { if let ( None , None ) = ( creation_time . as_ref ( ) , modification_time . as_ref ( ) ) { return ; } let mut inner = self . inner . lock ( ) . unwrap ( ) ; inner . creation_time = creation_time . or ( inner . creation_time ) ; inner . modification_time = modification_time . or ( inner . modification_time ) ; }
Sets the cached timestamp values.
Sets the cached timestamp values .
&self
creation_time
Option<Duration>
modification_time
Option<Duration>