Returns the temporary directory paths
(&self)
| 279 | |
| 280 | /// Returns the temporary directory paths |
| 281 | pub fn temp_dir_paths(&self) -> Vec<PathBuf> { |
| 282 | self.local_dirs |
| 283 | .lock() |
| 284 | .as_ref() |
| 285 | .map(|dirs| { |
| 286 | dirs.iter() |
| 287 | .map(|temp_dir| temp_dir.path().to_path_buf()) |
| 288 | .collect() |
| 289 | }) |
| 290 | .unwrap_or_default() |
| 291 | } |
| 292 | |
| 293 | /// Return true if this disk manager supports creating temporary |
| 294 | /// files. If this returns false, any call to `create_tmp_file` |