pub fn last_update() -> Option<Duration> {
        if let Ok((cache_dir, _)) = Self::get_cache_dir() {
            if let Ok(metadata) = fs::metadata(cache_dir.join(TLDR_PAGES_DIR)) {
                if let Ok(mtime) = metadata.modified() {
                    let now = SystemTime::now();
                    return now.duration_since(mtime).ok();
                };
            };
        };
        None
    }
/// Return the duration since the cache directory was last modified.
Return the duration since the cache directory was last modified.
Return the duration since the cache directory was last modified .
pub fn last_update() -> Option<Duration> {
        if let Ok((cache_dir, _)) = Self::get_cache_dir() {
            if let Ok(metadata) = fs::metadata(cache_dir.join(TLDR_PAGES_DIR)) {
                if let Ok(mtime) = metadata.modified() {
                    let now = SystemTime::now();
                    return now.duration_since(mtime).ok();
                };
            };
        };
        None
    }
pub fn last_update ( ) -> Option < Duration > { if let Ok ( ( cache_dir , _ ) ) = Self :: get_cache_dir ( ) { if let Ok ( metadata ) = fs :: metadata ( cache_dir . join ( TLDR_PAGES_DIR ) ) { if let Ok ( mtime ) = metadata . modified ( ) { let now = SystemTime :: now ( ) ; return now . duration_since ( mtime ) . ok ( ) ; } ; } ; } ; None }
Return the duration since the cache directory was last modified.
Return the duration since the cache directory was last modified .