MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / file_size

Function file_size

src/migrate/inventory.rs:928–930  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

926}
927
928fn file_size(path: &Path) -> u64 {
929 std::fs::metadata(path).map_or(0, |meta| meta.len())
930}
931
932fn dir_size(dir: &Path) -> u64 {
933 fn walk(path: &Path, total: &mut u64, visited_dirs: &mut HashSet<PathBuf>) {

Callers 5

inspect_project_storeFunction · 0.70
inspect_hermes_state_dbFunction · 0.70
record_optional_artifactFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected