فهرست منبع

Fix calculation of internal path

jherve 1 ماه پیش
والد
کامیت
fed92bf8ae
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      start.py

+ 1 - 1
start.py

@@ -16,7 +16,7 @@ def to_source_path(path: Path):
     mount_base = PurePosixPath("/mnt") / "source"
     inner_path = PurePosixPath(path)
     with_drive = PurePosixPath(inner_path.parts[0].replace(":", "")).joinpath(*inner_path.parts[1:])
-    return mount_base.joinpath(with_drive)
+    return mount_base / with_drive.relative_to(with_drive.anchor)
 
 
 def main():