diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 7df643f..17ea493 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))