From af6bdd074c190ce4cd779c12251e8d2a23344e4d Mon Sep 17 00:00:00 2001 From: Riccardo Murri Date: Sun, 27 Aug 2017 16:18:28 +0200 Subject: [PATCH] SshTransport: Fix `stat()` call on the wrong path. This prevented download of *any* output file from a remote server. --- gc3libs/backends/transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc3libs/backends/transport.py b/gc3libs/backends/transport.py index 4dd128d5..9623c04e 100755 --- a/gc3libs/backends/transport.py +++ b/gc3libs/backends/transport.py @@ -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: