This project is read-only.

File size "SIZE" before "STOR"

Mar 21, 2016 at 8:12 PM
Edited Mar 21, 2016 at 8:12 PM
FtpClient .cs

1524: client.GetFileSize(path);
1525:stream = client.OpenDataStream(string.Format("STOR {0}", path.GetFtpPath()), 0);

line 1524 should be removed as you cannot request the file size prior to transmitting the file to the server. Or rather, you can, but why bother? It is unnecessary and if the file doesn't already exist, generates an FTP error. Does not disrupt functionality, but still....