Skip to content

Commit

Permalink
fix #1002 putAccellerated when file names have colons
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Jun 21, 2024
1 parent 038dcbf commit a12dce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sarracenia/transfer/sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def putAccelerated(self, msg, local_file, remote_file, length=0):
dest_baseUrl = dest_baseUrl[0:-1]
arg2 = dest_baseUrl + ':' + msg['new_dir'] + os.sep + remote_file
arg2 = arg2.replace(' ', '\\ ')
arg1 = local_file
arg1 = '.' + os.sep + local_file

cmd = self.o.accelScpCommand.replace('%s', arg1)
cmd = cmd.replace('%d', arg2).split()
Expand Down

0 comments on commit a12dce3

Please sign in to comment.