MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / new_file

Method new_file

src/fs/directory.rs:143–146  ·  view source on GitHub ↗

New file

(&self, name: &str)

Source from the content-addressed store, hash-verified

141
142 // New file
143 pub fn new_file(&self, name: &str) -> Option<DirectoryEntry>
144 {
145 self.new_item(crate::fs::FileType::File, name)
146 }
147
148
149 // Create a new item

Callers 1

createMethod · 0.80

Calls 1

new_itemMethod · 0.80

Tested by

no test coverage detected