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

Method path_not_found

atomic-core/src/record/error.rs:318–320  ·  view source on GitHub ↗

Create a new path-not-found error. # Arguments `path` - The path that doesn't exist # Example ```rust use atomic_core::record::RecordError; use std::path::PathBuf; let err = RecordError::path_not_found(PathBuf::from("/missing/file.txt")); assert!(matches!(err, RecordError::PathNotFound { .. })); ```

(path: impl Into<PathBuf>)

Source from the content-addressed store, hash-verified

316 /// assert!(matches!(err, RecordError::PathNotFound { .. }));
317 /// ```
318 pub fn path_not_found(path: impl Into<PathBuf>) -> Self {
319 Self::PathNotFound { path: path.into() }
320 }
321
322 /// Create a new permission-denied error.
323 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected