Error Code 4

Advertisement

Lord Raiden
Joined:
Posts:
5

Error Code 4

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Error Code 4

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.

Reply with quote

Advertisement

You can post new topics in this forum