Re: ignore failure and return status code 0 when no file is there at SFTP
This above code always return status code 1 when file is not available .added code "failonnomatch off" but log didn't return status code 0
Try to replace
c_commandStr = c_commandStr & chr(34) & "get -delete -nopreservetime " & m_clientFileName & chr(34) & "
with something like:
- move all files to another directory which is only for your operations
- then try to get files from that another folder them without -delete
- then make rm * on that another folder