Using Session.FileExists() function throws "Session Failed" error

Advertisement

George A.
Guest

Using Session.FileExists() function throws "Session Failed" error

Hello.
When I try to check if file exists at FTP site with Session.FileExists() function it fires up Session.Failed event when file is not there. The message is "Can't get attributes of file .... No such file or directory. Error code: 2. Error message from server: File not found."
Is there a way to void this message? I read documentation and found nothing about it.

thank you.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,551
Location:
Prague, Czechia

Re: Using Session.FileExists() function throws "Session Failed" error

Thanks for your post.

This issue has been added to the tracker:
https://winscp.net/tracker/1513

Meanwhile, just ignore calls to the Session.Failed, when you are calling the Session.FileExists. Just introduce some flag.

Reply with quote

Advertisement

You can post new topics in this forum