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

Function io_summary

atomic-cli/src/commands/diagnostics/collect.rs:317–326  ·  view source on GitHub ↗

ErrorKind is safe to classify; arbitrary OS error messages are not.

(kind: ErrorKind)

Source from the content-addressed store, hash-verified

315
316/// ErrorKind is safe to classify; arbitrary OS error messages are not.
317fn io_summary(kind: ErrorKind) -> &'static str {
318 match kind {
319 ErrorKind::NotFound => "not found",
320 ErrorKind::PermissionDenied => "permission denied",
321 ErrorKind::InvalidData => "invalid data or encoding",
322 ErrorKind::IsADirectory => "is a directory",
323 ErrorKind::NotADirectory => "a path component is not a directory",
324 _ => "I/O error",
325 }
326}
327
328// A dangling symlink or a concurrent replacement is not proof of absence.
329fn demonstrably_missing(path: &Path) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected