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

Method invalid_path

atomic-cli/src/error.rs:460–465  ·  view source on GitHub ↗

Create an `InvalidPath` error for the given path. # Arguments `path` - The path that couldn't be accessed `source` - Optional underlying IO error

(path: P, source: Option<std::io::Error>)

Source from the content-addressed store, hash-verified

458 /// * `path` - The path that couldn't be accessed
459 /// * `source` - Optional underlying IO error
460 pub fn invalid_path<P: Into<PathBuf>>(path: P, source: Option<std::io::Error>) -> Self {
461 Self::InvalidPath {
462 path: path.into(),
463 source,
464 }
465 }
466
467 /// Create a `RepositoryNotFound` error for the given path.
468 pub fn repository_not_found<P: Into<PathBuf>>(path: P) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected