pub fn secure_create_dir_all(path: &Path) -> Result<()>Expand description
Create a directory hierarchy with mode 0700, validating ownership of existing components.
Trusted system roots (/, /tmp, /run, $XDG_RUNTIME_DIR) are accepted without
ownership checks. All other existing directories must be owned by the current user
and must not be symlinks.