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

Method path_not_found

atomic-core/src/output/repo/error.rs:217–219  ·  view source on GitHub ↗

Create a path not found error. # Arguments `path` - The path that was not found # Example ```rust use atomic_core::output::repo::OutputError; let err = OutputError::path_not_found("src/missing.rs"); assert!(err.is_not_found()); assert!(err.to_string().contains("src/missing.rs")); ```

(path: impl Into<String>)

Source from the content-addressed store, hash-verified

215 /// assert!(err.to_string().contains("src/missing.rs"));
216 /// ```
217 pub fn path_not_found(path: impl Into<String>) -> Self {
218 Self::PathNotFound { path: path.into() }
219 }
220
221 /// Create an inode not found error.
222 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected