Skip to main content

relative_from

Function relative_from 

Source
pub fn relative_from(from_dir: &Path, target: &Path) -> String
Expand description

POSIX-style relative path from from_dir to target. Canonicalises when possible; always emits forward slashes (TS/ESM specifier shape).