fix: ensure log path exists

This commit is contained in:
aclist 2026-01-08 17:15:27 +09:00
parent 42e9cf6378
commit f83eca7c18

View File

@ -64,6 +64,10 @@ def main() -> None:
xdg_paths = get_xdg_paths()
XDG = parse_filepaths(xdg_paths)
# NOTE: required for logs to be written
if XDG.debug.is_file() is False:
XDG.debug.parent.mkdir(parents=True, exist_ok=True)
if has_new_config(XDG.config) is False:
migrate_legacy_conf(XDG.config)
migrate_cols_file(XDG.columns)