shamo.utils.path.get_relative_path¶
-
shamo.utils.path.
get_relative_path
(ref, path)[source]¶ Return the relative path from the reference to a file or directory.
- Parameters
- ref
str
,byte
oros.PathLike
The path to the reference file or directory.
- path
str
,byte
oros.PathLike
The path to the file or directory to compute the relative path for.
- ref
- Returns
pathlib.Path
The relative path to the file or directory.