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

Method new

atomic-core/src/record/workflow/collect.rs:124–131  ·  view source on GitHub ↗

Create a new tracked file entry. # Arguments `path` - Path relative to repository root `inode` - Stable file identifier `position` - Graph position # Returns A new `TrackedFile` (defaults to not a directory).

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

Source from the content-addressed store, hash-verified

122 ///
123 /// A new `TrackedFile` (defaults to not a directory).
124 pub fn new(path: impl Into<String>, inode: Inode, position: Position<NodeId>) -> Self {
125 Self {
126 path: path.into(),
127 inode,
128 position,
129 is_directory: false,
130 }
131 }
132
133 /// Mark this entry as a directory.
134 pub fn as_directory(mut self) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected