No option to set blocksize when retrieving a file in ftphook #23935
Labels
area:providers
contributors-workshop
Issues that are good for first-time contributor's workshop
good first issue
kind:feature
Feature Requests
Apache Airflow version
2.0.0
What happened
using ftphook, im trying to download a file in chunks but the deafult blocksize is 8192 and cannot be changed.
retrieve_file code is calling conn.retrbinary(f'RETR {remote_file_name}', callback) but no blocksize is passed while this function is declared:
def retrbinary(self, cmd, callback, blocksize=8192, rest=None):
What you think should happen instead
allow passing a blocksize
How to reproduce
No response
Operating System
gcp
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: