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,byteoros.PathLike The path to the reference file or directory.
- path
str,byteoros.PathLike The path to the file or directory to compute the relative path for.
- ref
- Returns
pathlib.PathThe relative path to the file or directory.