add setting port
This commit is contained in:
+2
-2
@@ -33,7 +33,7 @@ class FileSystemStorage:
|
||||
async def delete_file(self, file):
|
||||
filepath = self.DATA_ROOT / file['text'].lstrip(self.STATIC_URL + '/')
|
||||
await asyncio.to_thread(os.remove, filepath)
|
||||
|
||||
|
||||
async def delete_files(self, files):
|
||||
for file in files:
|
||||
if file['type'] != 'text':
|
||||
@@ -42,4 +42,4 @@ class FileSystemStorage:
|
||||
|
||||
STORAGE_ENGINE = {
|
||||
"filesystem": FileSystemStorage
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user