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

Method present

atomic-repository/src/repository/snapshot_split.rs:64–74  ·  view source on GitHub ↗
(path: impl Into<String>, repository_bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

62
63impl IndexManifestEntry {
64 pub fn present(path: impl Into<String>, repository_bytes: Vec<u8>) -> Self {
65 Self {
66 path: path.into(),
67 source_path: None,
68 state: IndexEntryState::Present {
69 repository_bytes: Some(repository_bytes),
70 mode: 0o644,
71 kind: InodeKind::Regular,
72 },
73 }
74 }
75
76 pub fn delete(path: impl Into<String>) -> Self {
77 Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected