I'm developing SFTP file transferring project using WinSCP .NET Assembly (C#).
I want to move files in server. Here is the code:
session.MoveFile(server.RemoteDownloadPath + fileInfo.Name, server.DoneFilePath);
Console.WriteLine("Move File {0} to {1}", fileInfo.Name, server.DoneFilePath);
If current moving file exist in target path it does not move. So I want to rename file and move it.
Is there any way to do that?