Skip to main content

confined_join

Function confined_join 

pub fn confined_join(root: &Path, path: &str) -> Result<PathBuf, Error>
Expand description

Join an OpenDAL path to a local filesystem root.

This function strips trailing / characters, so the OpenDAL root path / resolves to root. It returns ErrorKind::NotFound for parent-directory components, root-directory components, or Windows path prefixes.

The check is lexical. The filesystem resolves symlinks.