Add a communication handle as a path in the VFS
(mut self, mut handle: CommHandle, path: &str)
| 474 | |
| 475 | /// Add a communication handle as a path in the VFS |
| 476 | pub fn mount(mut self, mut handle: CommHandle, path: &str) -> Self { |
| 477 | // String containing handle number |
| 478 | let handle_s = unsafe{handle.take().to_string()}; |
| 479 | |
| 480 | self.s.push('m'); // Code for "mount" |
| 481 | self.s.push_str(&handle_s); |
| 482 | self.s.push('|'); // Terminates handle |
| 483 | self.s.push_str(path); |
| 484 | self.s.push(':'); // Terminates path |
| 485 | self |
| 486 | } |
| 487 | |
| 488 | /// Remove a path from the VFS |
| 489 | pub fn remove(mut self, path: &str) -> Self { |