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

Method path_string

atomic-core/src/record/item.rs:693–695  ·  view source on GitHub ↗

Get the full path as a string. # Returns The path as a string, or an empty string if the path is invalid UTF-8.

(&self)

Source from the content-addressed store, hash-verified

691 ///
692 /// The path as a string, or an empty string if the path is invalid UTF-8.
693 pub fn path_string(&self) -> String {
694 self.path.to_string_lossy().to_string()
695 }
696}
697
698#[cfg(test)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected