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

Function json_path

atomic-cli/src/commands/status.rs:1279–1282  ·  view source on GitHub ↗
(path: &std::path::Path)

Source from the content-addressed store, hash-verified

1277}
1278
1279fn json_path(path: &std::path::Path) -> String {
1280 path.to_string_lossy()
1281 .replace(std::path::MAIN_SEPARATOR, "/")
1282}
1283
1284fn json_status_name(status: FileStatus) -> &'static str {
1285 match status {

Callers 1

fromMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected