get command delete remote file

Advertisement

Jakubowsky
Guest

get command delete remote file

Hello,
when I want copy file from remote directory to local using "get" command, remote directory file is deleted.

My code:
/command "option batch abort" "open sftp://..." "option transfer ascii" "cd Remote_Directory" "lcd Local_Directory" "get File_Name"

I have no permission to write on remote directory, can this cause the problem? If yes, why?

Thanks.

Reply with quote

Advertisement

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

Re: get command delete remote file

WinSCP does not delete the remote file (unless you specify get -delete). And it cannot delete the file anyway, if you do not have write permissions.

Reply with quote

Jakubowsky
Guest

Problem solved!

I found that on the client side has been set automatic deletion after you copy files. So command "get" working properly.

Reply with quote

Advertisement

You can post new topics in this forum