MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / names

Function names

atomic-cli/src/logging/retention.rs:65–72  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

63 use super::*;
64
65 fn names(dir: &Path) -> Vec<String> {
66 let mut names: Vec<String> = fs::read_dir(dir)
67 .unwrap()
68 .map(|entry| entry.unwrap().file_name().to_string_lossy().into_owned())
69 .collect();
70 names.sort();
71 names
72 }
73
74 #[test]
75 fn keeps_the_newest_daily_files_and_nothing_else_is_touched() {

Callers

nothing calls this directly

Calls 4

sortMethod · 0.80
collectMethod · 0.45
unwrapMethod · 0.45
file_nameMethod · 0.45

Tested by

no test coverage detected