Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

George A.

Thank you!

Thank you sir.
martin

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.
George A.

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.