(&mut self, dir: D)
| 71 | } |
| 72 | |
| 73 | pub fn current_dir<D>(&mut self, dir: D) |
| 74 | where |
| 75 | D: AsRef<OsStr>, |
| 76 | { |
| 77 | self.cwd = Some(dir.as_ref().to_owned()); |
| 78 | } |
| 79 | |
| 80 | pub fn get_current_dir(&self) -> Option<&OsStr> { |
| 81 | self.cwd.as_deref() |
no outgoing calls