MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / create_private_dir

Function create_private_dir

atomic-cli/src/logging/mod.rs:314–320  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

312/// its permissions.
313#[cfg(unix)]
314fn 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))]
323fn create_private_dir(dir: &Path) -> std::io::Result<()> {

Callers 1

open_fileFunction · 0.85

Calls 2

createMethod · 0.45
modeMethod · 0.45

Tested by

no test coverage detected