Topic "Element "mv" not found in log file"

Author Message


I am setting up synchronization between our local folder and a remote folder on the client's side, using sftp.
The synchronization, uploading/downloading files is working fine.

I just added moving the files from one remote directory to the archive remote directory using the following statement:

$session.MoveFile("/sftp/file_*", "/sftp/archive/")

As far as I understand this should move all files from "/sftp/" starting with "file_" to the /sftp/archive folder.

However I keep getting the error:

Element "mv" not found in log file. Please advise on how to resolve this issue.

Kind regards,
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Please attach a full session and debug log file showing the problem (using the latest version of WinSCP).

To generate log files, set Session.SessionLogPath and Session.DebugLogPath. Submit the log with your post as an attachment. You may want to remove other data you consider sensitive, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License