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

Author Message
ASKant

Guest


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");
}
}
SessionLogPath.txt (7.71 KB) [Download]

Description: (none)

DebugLogPath.txt (32.34 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1412
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License