Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pysftp
ADD COMMENT
Topic
Name
5+8 =