Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix download_file #25

Merged
merged 3 commits into from
Jul 10, 2024
Merged

fix download_file #25

merged 3 commits into from
Jul 10, 2024

Conversation

9v2
Copy link
Contributor

@9v2 9v2 commented Jul 10, 2024

Yes. the method was not working. So I fix it.
The file_path returns folder path also, not just file_name, so i removed the folder name.
also fixed Closed Connection issue in this method.

@z44d
Copy link
Owner

z44d commented Jul 10, 2024

Yeah it’s true thanks, but i think you must split the file_path only here.

file_path = file_path or file.file_path.split("/")[1]

The current code will ignore the folder even when you set it.

@9v2
Copy link
Contributor Author

9v2 commented Jul 10, 2024

ok. thanks

@z44d z44d added the bug Something isn't working label Jul 10, 2024
@z44d z44d changed the title fixing message.download. fix download_file Jul 10, 2024
@z44d z44d merged commit 1f02e9f into z44d:main Jul 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants