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

Method directory

atomic-core/src/output/mod.rs:375–383  ·  view source on GitHub ↗

Create a new output item for a directory.

(parent: Inode, path: String, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

373
374 /// Create a new output item for a directory.
375 pub fn directory(parent: Inode, path: String, pos: Position<NodeId>) -> Self {
376 Self {
377 parent,
378 path,
379 metadata: FileMetadata::directory(),
380 pos,
381 is_zombie: None,
382 }
383 }
384
385 /// Set this item as a zombie (deleted but with live content).
386 pub fn with_zombie(mut self, changes: Vec<Hash>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected