Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 17, 2024
1 parent c30c412 commit 92f1262
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commons/src/cache/app_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ fn save(store: &AppCache) -> Result<&AppCache, CacheError> {
Ok(store)
}

/// Copies the mtime information from a path to another path
///
/// This is information used for the LRU cleaner so that older files are removed first.
fn copy_mtime_r(from: &Path, to_path: &Path) -> Result<(), CacheError> {
for entry in WalkDir::new(from).into_iter().filter_map(Result::ok) {
let relative = entry
Expand Down

0 comments on commit 92f1262

Please sign in to comment.