Skip to main content

is_ephemeral

Function is_ephemeral 

Source
pub fn is_ephemeral(path: &Path) -> bool
Expand description

Detect whether the parent directory of a path is a temporary/cache location.

Checks path components (split by -, _, .) case-insensitively for cache, tmp, temp, or temporary. Excludes the portion of the path before .app/ to avoid false positives from macOS app bundle names.