(dir: &Path)
| 312 | /// its permissions. |
| 313 | #[cfg(unix)] |
| 314 | fn create_private_dir(dir: &Path) -> std::io::Result<()> { |
| 315 | use std::os::unix::fs::DirBuilderExt; |
| 316 | std::fs::DirBuilder::new() |
| 317 | .recursive(true) |
| 318 | .mode(0o700) |
| 319 | .create(dir) |
| 320 | } |
| 321 | |
| 322 | #[cfg(not(unix))] |
| 323 | fn create_private_dir(dir: &Path) -> std::io::Result<()> { |