Skip to main content

shared_trees

Function shared_trees 

Source
pub fn shared_trees(policy: &Policy) -> Vec<PathBuf>
Expand description

The package-manager trees under the directories policy lets the cant write: for each writable directory d (from the manifest, the command line or --grant), d/node_modules and d/.venv or d/venv with a pyvenv.cfg, and the same one level down (workspaces). A tree the manifest grants writable itself ($CWD/* grants each entry) is one too. A tree the user named (--grant, or as an argument), or that holds a path they named, is their choice and is left alone. Sorted, distinct.