pub fn is_safe_path(base: impl AsRef<Path>, target: impl AsRef<Path>) -> bool
Reject paths that escape the base directory, including via symlinks.
base
Ported from @hyperframes/core/src/safePath.ts.
@hyperframes/core/src/safePath.ts