mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
fix bug
This commit is contained in:
@@ -48,8 +48,10 @@ def list_local(fileitem: schemas.FileItem,
|
|||||||
else:
|
else:
|
||||||
path = "/"
|
path = "/"
|
||||||
else:
|
else:
|
||||||
if not SystemUtils.is_windows() and not fileitem.path.startswith("/"):
|
if SystemUtils.is_windows():
|
||||||
path = "/" + fileitem.path
|
path = path.lstrip("/")
|
||||||
|
elif not path.startswith("/"):
|
||||||
|
path = "/" + path
|
||||||
|
|
||||||
# 遍历目录
|
# 遍历目录
|
||||||
path_obj = Path(path)
|
path_obj = Path(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user