with open('/tmp/SHA256SUM', 'a') as digestfile:
with sftp.open(filename, 'xw', BUFFER) as remotefile:
digest = hashlib.sha256()
with open('/tmp/SHA256SUM', 'a') as digestfile:
with sftp.open(filename, 'xw', BUFFER) as remotefile:
digest = hashlib.sha256()