fix: tolerate delayed OpenList metadata

This commit is contained in:
jxxghp
2026-05-20 15:53:56 +08:00
parent 5fe5523d13
commit 72ead2970c
4 changed files with 116 additions and 8 deletions
+12 -1
View File
@@ -331,7 +331,18 @@ class Alist(StorageBase, metaclass=WeakSingleton):
)
return None
return self._delay_get_item(path, refresh=True)
return self._delay_get_item(
path, refresh=True
) or self.__build_transfer_item(
schemas.FileItem(
storage=self.schema.value,
type="dir",
path=fileitem.path,
name=name,
basename=Path(name).stem,
),
path,
)
def get_folder(self, path: Path) -> Optional[schemas.FileItem]:
"""