diff --git a/src/music_kraken/objects/target.py b/src/music_kraken/objects/target.py index b076e5b..e2e4546 100644 --- a/src/music_kraken/objects/target.py +++ b/src/music_kraken/objects/target.py @@ -44,3 +44,10 @@ class Target(DatabaseObject): @property def indexing_values(self) -> List[Tuple[str, object]]: return [('filepath', self.file_path)] + + @property + def exists(self) -> bool: + return self.file_path.exists + + def create_path(self): + self._path.mkdir(parents=True, exist_ok=True)