mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 11:12:15 +03:00
Merge branch 'master' of https://github.com/Pardus-Kurumsal/ahenk
This commit is contained in:
commit
74c54fd0f1
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ class Ssh(object):
|
|||
try:
|
||||
sftp.chdir(self.target_path) # Test if remote_path exists
|
||||
except IOError:
|
||||
sftp.mkdir() # Create remote_path
|
||||
print(self.target_path)
|
||||
sftp.mkdir(self.target_path) # Create remote_path
|
||||
sftp.chdir(self.target_path)
|
||||
|
||||
sftp.put(local_path, self.target_path + md5)
|
||||
|
|
Loading…
Reference in a new issue