Accesses the [`Path`] to the temporary directory. [`Path`]: std::path::Path # Examples ``` use assert_fs::fixture::TempDir; let tmp_dir = TempDir::new().unwrap(); println!("{}", tmp_dir.path().display()); tmp_dir.close().unwrap(); ```
(&self)
| 240 | /// tmp_dir.close().unwrap(); |
| 241 | /// ``` |
| 242 | pub fn path(&self) -> &path::Path { |
| 243 | match self.temp { |
| 244 | Inner::Temp(ref temp) => temp.path(), |
| 245 | Inner::Persisted(ref path) => path.as_path(), |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | /// Closes and removes the temporary directory, returning a `Result`. |
| 250 | /// |
no outgoing calls
no test coverage detected