Skip to content

Commit

Permalink
Merge 008a45a into 52e7974
Browse files Browse the repository at this point in the history
  • Loading branch information
moscoquera committed Sep 19, 2017
2 parents 52e7974 + 008a45a commit 7776ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pssh/ssh_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _copy_dir(self, local_dir, remote_dir, sftp):
file_list = os.listdir(local_dir)
for file_name in file_list:
local_path = os.path.join(local_dir, file_name)
remote_path = os.path.join(remote_dir, file_name)
remote_path = remote_dir+'/'+file_name
self.copy_file(local_path, remote_path, recurse=True,
sftp=sftp)

Expand Down Expand Up @@ -455,7 +455,7 @@ def copy_remote_file(self, remote_file, local_file, recurse=False,
def _copy_remote_dir(self, file_list, remote_dir, local_dir, sftp):
for file_name in file_list:
remote_path = os.path.join(remote_dir, file_name)
local_path = os.path.join(local_dir, file_name)
local_path = local_dir+'/'+file_name
self.copy_remote_file(remote_path, local_path, sftp=sftp,
recurse=True)

Expand Down

0 comments on commit 7776ad9

Please sign in to comment.