zut.path.relativize_path
- zut.path.relativize_path(path: str | PathLike, to: str | PathLike | None = None) Path
- zut.path.relativize_path(path: IO, to: str | PathLike | None = None) IO
- zut.path.relativize_path(path: None, to: str | PathLike | None = None) None
Express a path relatively to the given directory (current working directory by default) if it is inside its tree.