I am writing Python code for Windows and it connects to SFTP via paramiko. In the SFTP there are around 100k individual .txt files, 4kb in size each. The current python process will read each file from SFTP and write to local which are very slow.
Is there a way to compress those files for example using zip into a single file and then download and un-compress/extract in local drive?
Thank you