Skip to main content

is_safe_temp_dir

Function is_safe_temp_dir 

Source
pub fn is_safe_temp_dir(
    path: &Path,
    user: Option<u32>,
    accessible: impl Fn(&Path) -> bool,
) -> bool
Expand description

Whether a directory is safe to keep temporary files in: accessible and, where user is given, a real directory (not a link) that user owns and no one else can write to. music21’s _isSafeTempDir.