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

Method directory_deleted

atomic-repository/src/parallel_record/mod.rs:137–146  ·  view source on GitHub ↗

Create an input for a deleted directory.

(path: String, inode: Inode, position: Position<NodeId>)

Source from the content-addressed store, hash-verified

135
136 /// Create an input for a deleted directory.
137 pub fn directory_deleted(path: String, inode: Inode, position: Position<NodeId>) -> Self {
138 Self {
139 path,
140 full_path: PathBuf::new(),
141 kind: FileRecordKind::DirectoryDeleted,
142 old_content: Vec::new(),
143 inode: Some(inode),
144 position: Some(position),
145 }
146 }
147
148 /// Returns `true` if this is an added file (not directory).
149 pub fn is_added(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected