fix failed SFTP when transfer empty file

fix bug that can't tranfer empty(0 byte) file with SFTP.