fixing download dir

This commit is contained in:
Danilo Reyes
2026-03-01 17:45:58 -06:00
parent 2a55d92f19
commit ba42689aa9

View File

@@ -25,7 +25,8 @@ def _resolve_folder(user: User, handle: str | None) -> Path | None:
base = user.directories.get("download")
if base is None:
return None
base = base / "x.com"
if not base.exists():
return None
if not handle:
return base
candidates = [
@@ -34,7 +35,7 @@ def _resolve_folder(user: User, handle: str | None) -> Path | None:
for cand in candidates:
if cand.exists():
return cand
return base
return None
def _open_folder(path: Path) -> None: