Create a new output item for a directory.
(parent: Inode, path: String, pos: Position<NodeId>)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected