pysftp - PyPI
pypi.org › project › pysftpJul 05, 2016 · Checkout the Cook Book, in the docs, to see what pysftp can do for you. Example import pysftp with pysftp.Connection('hostname', username='me', password='secret') as sftp: with sftp.cd('public'): # temporarily chdir to public sftp.put('/my/local/filename') # upload file to public/ on remote sftp.get('remote_file') # get a remote file
pysftp - PyPI
https://pypi.org/project/pysftp05.07.2016 · created pysftp.cd with-context version of os.chdir for local directories; created docs, cookbook to show off some of the notable features of pysftp; 0.2.7 (released 2014-05-24) created pysftp.Connection.walktree, recursively walk, depth first, a remote directory structure. Used as the base of .get_r. See tests/test_walktree.py for examples.
Cook Book — pysftp 0.2.9 documentation
pysftp.readthedocs.io › en › release_0pysftp.Connection.get_d () ¶ This pysftp method is an abstraction above get () that allows you to copy all the files in a remote directory to a local path. # copy all files under public to a local path, preserving modification time sftp.get_d('public', 'local-backup', preserve_mtime=True) pysftp.Connection.get_r () ¶
pysftp Documentation - Read the Docs
media.readthedocs.org › pdf › pysftp4.1.4 pysftp.Connection.get_d() This pysftp method is an abstraction above get()that allows you to copy all the files in a remote directory to a local path. # copy all files under public to a local path, preserving modification time sftp.get_d('public','local-backup', preserve_mtime=True) 4.1.5 pysftp.Connection.get_r()