add get/put to the sftp demo
This commit is contained in:
parent
83b335e10f
commit
87d97fa209
|
@ -102,6 +102,10 @@ try:
|
||||||
open('README_demo_sftp', 'w').write(data)
|
open('README_demo_sftp', 'w').write(data)
|
||||||
print 'copied README back here'
|
print 'copied README back here'
|
||||||
|
|
||||||
|
# BETTER: use the get() and put() methods
|
||||||
|
sftp.put('demo_sftp.py', 'demo_sftp_folder/demo_sftp.py')
|
||||||
|
sftp.get('demo_sftp_folder/README', 'README_demo_sftp')
|
||||||
|
|
||||||
t.close()
|
t.close()
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
Loading…
Reference in New Issue