MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / umount

Function umount

shell/src/main.rs:112–121  ·  view source on GitHub ↗

Unmount a path

(args: &[&str])

Source from the content-addressed store, hash-verified

110
111/// Unmount a path
112fn umount(args: &[&str]) {
113 if args.len() != 1 {
114 println!("Usage: umount <path>");
115 return;
116 }
117 let path = args.first().unwrap(); // We know it has one element
118 if let Err(err) = syscalls::umount(path) {
119 println!("umount error: {}", err);
120 }
121}
122
123/// Delete a file
124fn rm(current_directory: &Path, args: &[&str]) {

Callers 1

mainFunction · 0.70

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected