0 votes
by (120 points)
edited

Why would the FTP GetFile Method produce a zero byte file?

Applies to: Rebex FTP/SSL

1 Answer

0 votes
by (58.9k points)
edited

For instance, a zero-byte file will be produced if the remote file you are downloading has length = 0. You can check the length of the remote file before downloading using GetFileLength method like this:

ftp.GetFileLength("filePath")

...