Get - Delete failing after 1st file

Advertisement

rileybloke
Joined:
Posts:
2
Location:
UK

Get - Delete failing after 1st file

Hi All,

Probably a simple one. I have created a script to get all the files from a remote directory then delete them...

get -delete /directory/* e:\localdir\inbound\*
It transfers the 1st file, but then fails when trying to delete it, therefore does not continue to the next file.

The log gives this...
019-08-27 19:04:22.890 Error deleting file '/directory/file1.PDF'. ("No such file or directory.
. 2019-08-27 19:04:22.890 Error code: 2
. 2019-08-27 19:04:22.890 Error message from server: No such file")
< 2019-08-27 19:04:22.890 Script: Error deleting file '/directory/file1.PDF'.
< 2019-08-27 19:04:22.890 Script: No such file or directory.
< 2019-08-27 19:04:22.890 Error code: 2
< 2019-08-27 19:04:22.890 Error message from server: No such file
. 2019-08-27 19:04:22.890 Script: Failed
. 2019-08-27 19:04:22.890 Script: Exit code: 1
. 2019-08-27 19:04:22.890 Closing connection.
. 2019-08-27 19:04:22.890 Sending special code: 12
. 2019-08-27 19:04:22.890 Sent EOF message

Thanks
Rileybloke

Reply with quote

Advertisement

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

Re: Get - Delete failing after 1st file

Can you "Download and Delete" the file in WinSCP GUI?
Can you download and then delete manually? Can you even delete the file anyhow?

Reply with quote

Advertisement

You can post new topics in this forum