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

Function normalize_path

atomic-repository/src/tracking/helpers.rs:14–16  ·  view source on GitHub ↗

- Removes trailing slashes - Strips absolute path prefix if it matches repo root - No trailing slash (except for root) - Relative to repository root

(path: &Path)

Source from the content-addressed store, hash-verified

12/// - No trailing slash (except for root)
13/// - Relative to repository root
14pub fn normalize_path(path: &Path) -> String {
15 normalize_path_with_root(path, None)
16}
17
18/// Normalize a path for storage, optionally stripping a repo root prefix.
19///

Callers 15

add_batchMethod · 0.50
remove_batchMethod · 0.50
add_directoryMethod · 0.50
removeMethod · 0.50
move_fileMethod · 0.50
is_trackedMethod · 0.50
get_file_inodeMethod · 0.50
tracked_files_underMethod · 0.50
get_file_contentMethod · 0.50

Calls 1

normalize_path_with_rootFunction · 0.85

Tested by

no test coverage detected