Topic "Error Code 4"

Author Message
Lord Raiden
[View user's profile]

Joined: 2008-04-12
Posts: 5
version 4.1
SFTP

I get an Error Code 4 when trying to rename a file using a script. I understand that the error refers to renaming to the name of an already existing file. I'm doing this on purpose.

My question is, why is it when using the GUI panel I can rename it, when clicking on HOM to open a terminal, I can rename (mv) it. But when opening the session via a script, I cannot rename it??? Is there some setting I need to do to allow me to rename the file to an existing one?

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You cannot compare mv command in shell and mv command in SFTP. MV command in SFTP does not allow renaming to existing name by specification.
_________________
Martin Prikryl
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