diff --git a/src/music_kraken/utils/path_manager/locations.py b/src/music_kraken/utils/path_manager/locations.py index 54e982d..7c5a798 100644 --- a/src/music_kraken/utils/path_manager/locations.py +++ b/src/music_kraken/utils/path_manager/locations.py @@ -10,12 +10,12 @@ from .config_directory import get_config_directory class Locations: def __init__(self, application_name: os.PathLike = "music-kraken"): self.TEMP_DIRECTORY = Path(tempfile.gettempdir(), application_name) - self.TEMP_DIRECTORY.mkdir(exist_ok=True) + self.TEMP_DIRECTORY.mkdirs(exist_ok=True) self.MUSIC_DIRECTORY = get_music_directory() self.CONFIG_DIRECTORY = get_config_directory(str(application_name)) - self.CONFIG_DIRECTORY.mkdir(exist_ok=True) + self.CONFIG_DIRECTORY.mkdirs(exist_ok=True) self.CONFIG_FILE = Path(self.CONFIG_DIRECTORY, f"{application_name}.conf") def get_log_file(self, file_name: os.PathLike) -> Path: