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

Function directory_new

src/fs/mod.rs:157–161  ·  view source on GitHub ↗

Create a new directory

(path: &str)

Source from the content-addressed store, hash-verified

155
156// Create a new directory
157pub fn directory_new(path: &str) -> Option<usize>
158{
159 let flags = OpenFlag::CREATE as usize | OpenFlag::DIRECTORY as usize;
160 crate::sys::sc::open(path, flags)
161}
162
163
164// Open a directory

Callers 1

new_dirFunction · 0.85

Calls 1

openFunction · 0.70

Tested by

no test coverage detected