mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-04 03:00:09 +08:00
fix transfer
This commit is contained in:
@@ -124,7 +124,16 @@ class LocalStorage(StorageBase):
|
||||
"""
|
||||
获取目录
|
||||
"""
|
||||
pass
|
||||
if not path.exists():
|
||||
return None
|
||||
return schemas.FileItem(
|
||||
storage=self.schema.value,
|
||||
type="dir",
|
||||
path=str(path).replace("\\", "/") + "/",
|
||||
name=path.name,
|
||||
basename=path.stem,
|
||||
modify_time=path.stat().st_mtime,
|
||||
)
|
||||
|
||||
def detail(self, fileitm: schemas.FileItem) -> Optional[schemas.FileItem]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user