diff options
-rw-r--r-- | paramiko/sftp_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 1caaf165..cbef8f71 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -584,7 +584,7 @@ class SFTPClient(BaseSFTP): """ file_size = os.stat(localpath).st_size with open(localpath, 'rb') as fl: - return self.putfo(fl, remotepath, os.stat(localpath).st_size, callback, confirm) + return self.putfo(fl, remotepath, file_size, callback, confirm) def getfo(self, remotepath, fl, callback=None): """ |