I need to download files from remote shared drive in my local system,
and for that I'm using pysmb
library to make a connection.
The code is as follows:
import pysmb
conn = SMBConnection(username, password, client_machine_name, server_name,
use_ntlm_v2=True)
conn.connect(host, 139)
with open("local_file.txt", "wb") as local_file:
conn.retrieveFile(share, file_path, local_file)
It takes 5 min to download 200mb file, even though my internet speed is decent.
Any optimisation or alternate method to download the files faster?