Skip to content

Commit e32c788

Browse files
committed
Fix mkdir bugs
1 parent f88daea commit e32c788

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Music Caster Changelog
22

3+
5.25.0
4+
- [Fix] Forwards compatibility for v6
5+
36
5.24.0
47
- [Feat] Performance when indexing many URLs
58
- [Fix] Maintenance (Python 3.14)

src/music_caster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def ensure_single_instance(debugging=False):
150150
if IS_FROZEN:
151151
SETTINGS_FILE = Path(args.settings_path).absolute() if args.settings_path and USING_TAURI_FRONTEND else DEFAULT_SETTINGS_FILE
152152
if OLD_SETTINGS_FILE.exists():
153-
SETTINGS_FILE.mkdir(parents=True, exist_ok=True)
153+
SETTINGS_FILE.parent.mkdir(parents=True, exist_ok=True)
154154
os.rename(OLD_SETTINGS_FILE, SETTINGS_FILE)
155155

156156
PHANTOMJS_DIR = Path('phantomjs')
@@ -292,7 +292,7 @@ def activate_instance(port=2001, default_timeout=0.5, to_port=2004):
292292
if IS_FROZEN:
293293
DatabaseConnection.DATABASE_FILE = Path(args.db_path).absolute() if args.db_path and USING_TAURI_FRONTEND else DatabaseConnection.DEFAULT_DATABASE_FILE
294294
if DatabaseConnection.OLD_DATABASE_FILE.exists():
295-
DatabaseConnection.DATABASE_FILE.mkdir(parents=True, exist_ok=True)
295+
DatabaseConnection.DATABASE_FILE.parent.mkdir(parents=True, exist_ok=True)
296296
if DatabaseConnection.DATABASE_FILE.exists():
297297
print('not moving database because file already exists')
298298
else:

0 commit comments

Comments
 (0)