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