mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix #143: Imposible to download file into directory
This commit is contained in:
parent
8302e722a7
commit
cf95a9080c
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class Downloadable:
|
|||
if destination is None:
|
||||
destination = file.file_path
|
||||
elif isinstance(destination, (str, pathlib.Path)) and os.path.isdir(destination):
|
||||
os.path.join(destination, file.file_path)
|
||||
destination = os.path.join(destination, file.file_path)
|
||||
else:
|
||||
is_path = False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue