Skip to content

Commit

Permalink
SshTransport: Fix stat() call on the wrong path.
Browse files Browse the repository at this point in the history
This prevented download of *any* output file from a remote server.
  • Loading branch information
riccardomurri committed Aug 27, 2017
1 parent 092f74e commit af6bdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc3libs/backends/transport.py
Expand Up @@ -860,7 +860,7 @@ def get(self, source, destination, ignore_nonexisting=False,
ignore_nonexisting, overwrite, changed_only)

def _get_impl(self, source, destination):
if self.stat(destination).st_size < self.large_file_threshold:
if self.stat(source).st_size < self.large_file_threshold:
self.sftp.get(source, destination)
else:
with self.sftp.open(source) as fsrc:
Expand Down

0 comments on commit af6bdd0

Please sign in to comment.