Skip to main content

relative_label

Function relative_label 

Source
pub fn relative_label(root: &Path, path: &Path) -> String
Expand description

Render path relative to root with forward slashes; "." when they are equal.

Used for every user-facing directory label so that frontend/node_modules reads the same on Windows as on Linux, and so the interactive selector can address a specific nested directory unambiguously.