Re: How can i check whether a file exists? - WeOnlyDo Discussion board

Re: How can i check whether a file exists? (General questions)

by david.pearson@gmsl.co.uk, Monday, March 19, 2012, 15:26 (4630 days ago) @ david.pearson@gmsl.co.uk

David,

Are you using blocking or non-blocking mode?

You could also use CheckDir or Rename (and specify both parameters to be same) methods.

Regards,
Damba

CheckDir does not do what i want - it appears to require a directory name rather than a file name.

My test FTP server is returning file or directory not found when i call GetAttributes, so that looks like it could do what i want, but it never errors.


Complete thread: