Checking if file exists on remote server

Advertisement

ldaugher
Guest

Checking if file exists on remote server

Hi--

I am uploading a file through script and I have been noticing that some larger files sometimes have an error midstream but winSCP recovers and then successfully uploads the file; however, the errorlevel that is returned to me is still 1.

So, I was wondering how to check if the uploaded file existed on the remote server before returning an actual error? I can provide the log if you feel like I shouldn't be receiving the error to begin with.

Thanks so much
Laura

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Checking if file exists on remote server

ldaugher wrote:

I can provide the log if you feel like I shouldn't be receiving the error to begin with.
Would be fine... :-)
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum