Skip to main content

under_temp

Function under_temp 

Source
pub fn under_temp(path: &str) -> bool
Expand description

Whether path names a temporary directory, including a case variant, the macOS data-volume firmlink spelling (/System/Volumes/Data/tmp), and /var/folders. Shared by folder-code, config-dir and locus checks. This recognizes a place to refuse; it does not admit the path as scratch storage. A case variant of /tmp stays machine for writes on a case-sensitive volume.