Get the file name portion of the path.
(&self)
| 97 | |
| 98 | /// Get the file name portion of the path. |
| 99 | pub fn file_name(&self) -> Option<&str> { |
| 100 | Path::new(&self.path).file_name()?.to_str() |
| 101 | } |
| 102 | |
| 103 | /// Get the parent directory of the path. |
| 104 | pub fn parent(&self) -> Option<&str> { |
no outgoing calls