Topic "get command delete remote file"

Author Message
Jakubowsky

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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.
Jakubowsky

Guest


I´m sending a picture. This simple command copy file from /EXPORT to C:\Techem but file dissapear from /EXPORT. Any ideas why this happen?
FTP - techem.png (14.44 KB)

Description: (none)

FTP - techem.png

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.
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