How to move file using winSCP when file exist?
I'm developing sftp file transferring project using winSCP (C#). i want to move files in server.here is the code.
if current moving file exist in target path it not move.so i want to rename file and move it. is there any way to do that?
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 not move.so i want to rename file and move it. is there any way to do that?