pysftp get-r
# pysftp get_r does not work on Windows.
# It uses os.sep and os.path functions for remote SFTP paths, what is wrong, as SFTP paths always use a forward slash.
# But you can easily implement a portable replacement:
import os
from stat import S_ISDIR, S_ISREG