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

Method is_path_error

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

Check if this error indicates a missing or inaccessible path. This is useful for handling cases where files may have been deleted or moved during recording. # Returns `true` if the error is about a missing or inaccessible path.

(&self)

Source from the content-addressed store, hash-verified

429 ///
430 /// `true` if the error is about a missing or inaccessible path.
431 pub fn is_path_error(&self) -> bool {
432 matches!(
433 self,
434 Self::PathNotInRepo { .. }
435 | Self::PathNotFound { .. }
436 | Self::PermissionDenied { .. }
437 | Self::InodeNotFound { .. }
438 )
439 }
440
441 /// Check if this error indicates a storage/database problem.
442 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected