Recursive download with pysftp
问题 I'm trying to fetch from SFTP with the following structure: main_dir/ dir1/ file1 dir2/ file2 I tried to achieve this with commands below: sftp.get_r(main_path + dirpath, local_path) or sftp.get_d(main_path + dirpath, local_path) The local path is like d:/grabbed_files/target_dir , and the remote is like /data/some_dir/target_dir . With get_r I am getting FileNotFound exception. With get_d I am getting empty dir (when target dir have files not dirs, it works fine). I'm totally sure that