Skip to content

Instantly share code, notes, and snippets.

View azinazadi's full-sized avatar

Azin Azadi azinazadi

View GitHub Profile
@azinazadi
azinazadi / sftp_parallel.py
Created April 1, 2022 20:14
python sftp client to download files from remote in concurrent threads
import os
from threading import Thread
from time import sleep
import pysftp
from stat import S_IMODE, S_ISDIR, S_ISREG
def get_r_portable(remotedir, localdir, num_threads = 10):
print(remotedir)