fixed bug

This commit is contained in:
Hellow2
2023-03-30 16:10:48 +02:00
parent 6f30ae6f92
commit f8b3e57ade
2 changed files with 10 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class Target(DatabaseObject):
@property
def exists(self) -> bool:
return self.file_path.exists
return self.file_path.is_file()
def create_path(self):
self._path.mkdir(parents=True, exist_ok=True)