test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
Showing only changes of commit cadae54c2f - Show all commits
+2 -1
View File
@@ -49,7 +49,8 @@ class FileSystemStorage:
async def delete_file(self, text: str):
filepath = await self.get_filepath(text)
await asyncio.to_thread(os.remove, filepath)
if filepath.exists():
await asyncio.to_thread(os.remove, filepath)
async def delete_files(self, texts):
tasks = [self.delete_file(text) for text in texts]