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

Method from_file_kind

atomic-repository/src/repository/conflict_object.rs:41–48  ·  view source on GitHub ↗

Classify a runtime file kind.

(kind: atomic_core::operation::FileKind)

Source from the content-addressed store, hash-verified

39
40 /// Classify a runtime file kind.
41 pub fn from_file_kind(kind: atomic_core::operation::FileKind) -> Self {
42 match kind {
43 atomic_core::operation::FileKind::Regular => Self::Regular,
44 atomic_core::operation::FileKind::Symlink => Self::Symlink,
45 atomic_core::operation::FileKind::Gitlink => Self::Gitlink,
46 atomic_core::operation::FileKind::Directory => Self::Regular,
47 }
48 }
49}
50
51/// Encoding magic of a canonical conflict-set object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected