Error "Element "mv" not found in the log file" when script move in empty source directory

Advertisement

ASKant
Guest

Error "Element "mv" not found in the log file" when script move in empty source directory

WinSCP Version 5.8.1 beta (Build 6144)


I have exception "Element "mv" not found in the log file" if source directory ("RTD/IN/TMP/") empty and source path contain file mask like "RTD/IN/TMP/*.xml".

public void MoveRemoteFiles()
{

using (Session session = new Session())
{
// Setup session options
SessionOptions sessionOptions = new SessionOptions();
sessionOptions.ParseUrl("sftp://user:password@freeFTPd");
sessionOptions.GiveUpSecurityAndAcceptAnySshHostKey = true;

session.ExecutablePath = @"c:\Utils\WinSCP\winscp.exe";

session.SessionLogPath = "c:\\Utils\\WinSCP\\SessionLogPath.txt";
session.DebugLogPath = "c:\\Utils\\WinSCP\\DebugLogPath.txt";

session.Open(sessionOptions);
session.MoveFile("RTD/IN/TMP/*.xm", "SD/IN/TMP");
}
}

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum