I use this code:
var client = new Ftp();
client.ReceiveTimeout = TimeSpan.FromSeconds(60);
client.SendTimeout = TimeSpan.FromSeconds(60);
client.KeepAliveDuringTransfer(TimeSpan.FromSeconds(30));
client.KeepAliveTcp(TimeSpan.FromMinutes(10), TimeSpan.FromSeconds(1));
client.Upload(remotePath, localPath);
And sometimes, on remote ftp, I get empty files.
Are there any pieces of advise for such situation?