This commit is contained in:
jxxghp
2025-07-28 16:55:22 +08:00
parent 70dd8f0f1d
commit 5340e3a0a7
9 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class LocalStorage(StorageBase):
return schemas.FileItem(
storage=self.schema.value,
type="file",
path=str(path).replace("\\", "/"),
path=path.as_posix(),
name=path.name,
basename=path.stem,
extension=path.suffix[1:],
@@ -59,7 +59,7 @@ class LocalStorage(StorageBase):
return schemas.FileItem(
storage=self.schema.value,
type="dir",
path=str(path).replace("\\", "/") + "/",
path=path.as_posix() + "/",
name=path.name,
basename=path.stem,
modify_time=path.stat().st_mtime,