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

Method new

atomic-core/src/output/filesystem/mod.rs:136–142  ·  view source on GitHub ↗

Create a new file writer.

(file: File, path: PathBuf, inode: Inode)

Source from the content-addressed store, hash-verified

134impl FileWriter {
135 /// Create a new file writer.
136 fn new(file: File, path: PathBuf, inode: Inode) -> Self {
137 Self {
138 writer: BufWriter::new(file),
139 inode,
140 path,
141 }
142 }
143
144 /// Get the inode associated with this file.
145 pub fn inode(&self) -> Inode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected