Add a mount point to the VFS The path will have leading and trailing whitespace removed, and all trailing '/' characters removed. It is expected, though not technically required, for the path to start with '/'
(&mut self,
path: &str,
rendezvous: Arc<RwLock<Rendezvous>>)
| 33 | /// It is expected, though not technically required, for the |
| 34 | /// path to start with '/' |
| 35 | pub fn mount(&mut self, |
| 36 | path: &str, |
| 37 | rendezvous: Arc<RwLock<Rendezvous>>) { |
| 38 | let path = path.trim().trim_end_matches('/'); |
| 39 | self.0.write().push((String::from(path), rendezvous)); |
| 40 | } |
| 41 | |
| 42 | /// Remove a mount point from the VFS |
| 43 | pub fn umount(&mut self, |