summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/sftp_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py
index 7df643f5..17ea493c 100644
--- a/paramiko/sftp_client.py
+++ b/paramiko/sftp_client.py
@@ -575,7 +575,7 @@ class SFTPClient (BaseSFTP):
break
finally:
fr.close()
- if confirm and file_size:
+ if confirm:
s = self.stat(remotepath)
if s.st_size != size:
raise IOError('size mismatch in put! %d != %d' % (s.st_size, size))