sftp putfo() - flush file before stat() on remote file