Skip to main content

join_relative

Function join_relative 

Source
pub fn join_relative(
    base: impl AsRef<Path>,
    child: impl AsRef<Path>,
) -> Result<PathBuf, PathError>
Expand description

Join a relative child under base, rejecting absolute children.

§Filesystem access

No. Does not follow symlinks.

§Errors

  • Absolute child (including Windows drive-absolute / UNC)
  • Drive-relative Windows children