continued refactoring of downloads

This commit is contained in:
Hellow2
2023-05-25 11:21:39 +02:00
parent 82a95f9b49
commit 1362f708e6
3 changed files with 29 additions and 298 deletions

View File

@@ -98,3 +98,6 @@ class Target(DatabaseObject):
except requests.exceptions.Timeout:
shared.DOWNLOAD_LOGGER.error("Stream timed out.")
return False
def delete(self):
self.file_path.unlink(missing_ok=True)