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

Method deleted

atomic-core/src/record/detect.rs:482–492  ·  view source on GitHub ↗

Create a new file change for a deleted file. # Arguments `path` - Path to the file `inode` - File's inode `position` - Position in the graph

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

Source from the content-addressed store, hash-verified

480 /// * `inode` - File's inode
481 /// * `position` - Position in the graph
482 pub fn deleted(path: impl Into<String>, inode: Inode, position: Position<NodeId>) -> Self {
483 Self {
484 path: path.into(),
485 inode: Some(inode),
486 position: Some(position),
487 kind: FileChangeKind::Deleted,
488 metadata: None,
489 size: None,
490 mtime: None,
491 }
492 }
493
494 /// Create a new file change for a moved file.
495 ///

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
is_deletedMethod · 0.45

Tested by

no test coverage detected