Create an input for a deleted directory.
(path: String, inode: Inode, position: Position<NodeId>)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected