Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parsl/channels/local/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def push_file(self, source, dest_dir):
- FileCopyException : If file copy failed.
'''

local_dest = dest_dir + '/' + os.path.basename(source)
local_dest = os.path.join(dest_dir, os.path.basename(source))

# Only attempt to copy if the target dir and source dir are different
if os.path.dirname(source) != dest_dir:
Expand Down
4 changes: 2 additions & 2 deletions parsl/channels/ssh/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def push_file(self, local_source, remote_dir):
- FileCopyException : FileCopy failed.

'''
remote_dest = remote_dir + '/' + os.path.basename(local_source)
remote_dest = os.path.join(remote_dir, os.path.basename(local_source))

try:
self.makedirs(remote_dir, exist_ok=True)
Expand Down Expand Up @@ -200,7 +200,7 @@ def pull_file(self, remote_source, local_dir):
- FileCopyException : FileCopy failed.
'''

local_dest = local_dir + '/' + os.path.basename(remote_source)
local_dest = os.path.join(local_dir, os.path.basename(remote_source))

try:
os.makedirs(local_dir)
Expand Down