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

Function new_dir

src/init.rs:137–148  ·  view source on GitHub ↗

Create directory

(pname: &str, v: bool)

Source from the content-addressed store, hash-verified

135
136// Create directory
137pub fn new_dir(pname: &str, v: bool)
138{
139 if let Some(handle) = crate::fs::directory_new(pname)
140 {
141 crate::sys::sc::close(handle);
142
143 if v
144 {
145 println!("[INFO] NEW DIRECTORY: {}", pname);
146 }
147 }
148}
149
150
151// Set up a basic installation

Callers 1

setupFunction · 0.85

Calls 2

directory_newFunction · 0.85
closeFunction · 0.85

Tested by

no test coverage detected