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

Method added

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

Create a new file change for an added file. # Arguments `path` - Path to the file `encoding` - Detected encoding

(path: impl Into<String>, encoding: Encoding)

Source from the content-addressed store, hash-verified

428 /// * `path` - Path to the file
429 /// * `encoding` - Detected encoding
430 pub fn added(path: impl Into<String>, encoding: Encoding) -> Self {
431 Self {
432 path: path.into(),
433 inode: None,
434 position: None,
435 kind: FileChangeKind::Added { encoding },
436 metadata: None,
437 size: None,
438 mtime: None,
439 }
440 }
441
442 /// Create a new file change for a modified file.
443 ///

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
is_addedMethod · 0.45

Tested by

no test coverage detected