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

Method file

atomic-core/src/output/mod.rs:364–372  ·  view source on GitHub ↗

Create a new output item for a regular file.

(parent: Inode, path: String, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

362impl OutputItem {
363 /// Create a new output item for a regular file.
364 pub fn file(parent: Inode, path: String, pos: Position<NodeId>) -> Self {
365 Self {
366 parent,
367 path,
368 metadata: FileMetadata::file(),
369 pos,
370 is_zombie: None,
371 }
372 }
373
374 /// Create a new output item for a directory.
375 pub fn directory(parent: Inode, path: String, pos: Position<NodeId>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected