fixing download dir
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user