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

Function new_file

src/fs/mod.rs:266–270  ·  view source on GitHub ↗

New file

(path: &str)

Source from the content-addressed store, hash-verified

264
265// New file
266pub fn new_file(path: &str) -> Option<usize>
267{
268 let flags = OpenFlag::CREATE as usize;
269 crate::sys::sc::open(path, flags)
270}
271
272
273// Open

Callers 2

reopenFunction · 0.85
writeFunction · 0.85

Calls 1

openFunction · 0.70

Tested by

no test coverage detected