use super::*;
pub(crate) fn secure_profiling_session_root(root: &Path) {
fs::create_dir_all(root).unwrap();
set_mode(root, SESSION_ROOT_MODE).unwrap();
for entry in fs::read_dir(root).unwrap().flatten() {
if entry
.file_type()
.map(|kind| kind.is_file())
.unwrap_or(false)
{
set_mode(&entry.path(), SESSION_FILE_MODE).unwrap();
}
}
}