End of file error on sftp transfer with phpseclib

872 Views Asked by At

I'm trying to transfer files from one server to another using phpseclib and the Net_SFTP get() function. The problem that I'm running into is that about half the time, the file doesn't actually transfer over. I have 10 files that are supposed to be transferred over and every time I run the script, it fails on different files so there isn't really a pattern on where it's failing. I did a var dump using getSFTPErrors() and that returns an array with 2 entries, both of which are NET_SFTP_STATUS_EOF: End of file

Does anyone know what that error means in regard to file transfers? The files that its transferring are made with the Linux split command so my first thought was that it had something to do with how the original file is split up, but then there should be a pattern of some sort. Any suggestions or a direction to start looking in would be greatly appreciated. Thanks for the help!

0

There are 0 best solutions below