(path: &Path)
| 452 | |
| 453 | impl PrivateStoreIo { |
| 454 | pub fn create_dir_all(path: &Path) -> io::Result<()> { |
| 455 | reject_symlink_components(path, "private store directory")?; |
| 456 | fs::create_dir_all(path)?; |
| 457 | set_private_dir_permissions(path) |
| 458 | } |
| 459 | |
| 460 | pub fn write_file(path: &Path, contents: &[u8]) -> io::Result<()> { |
| 461 | if let Some(parent) = path.parent() { |
nothing calls this directly
no test coverage detected