Skip to main content

path_effect

Function path_effect 

Source
pub fn path_effect(
    class: EffectClass,
    raw: &str,
    cwd: Option<&str>,
) -> Option<EffectKey>
Expand description

A path effect on raw, absolute and normalized: ~/ expands to the home directory and a relative path resolves against cwd (an absolute directory). On disk the nearest existing ancestor is canonicalized, so an existing path is declared by its canonical form (symlinks resolved, and on macOS case and /tmp as /private/tmp) and a new one below it agrees with it. A Delete keeps its last component: removing a symlink removes the link. None when the path cannot be read structurally (shell expansion) or is relative with no known working directory.