in reply to Net::Sftp::Foreign writes empty files to FTP server

It must be due to put method trying to copy the time and permission of the file. Try passing copy_time => 0, copy_perm => 0 params to Put method.
  • Comment on Re: Net::Sftp::Foreign writes empty files to FTP server