Re: How can i check whether a file exists? (General questions)
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:
- How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 14:28
- Re: How can i check whether a file exists? - wodDamir, 2012-03-19, 14:33
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 14:40
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 14:55
- Re: How can i check whether a file exists? - wodDamir, 2012-03-19, 15:05
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 15:10
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 15:19
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 15:26
- Re: How can i check whether a file exists? - wodDamir, 2012-03-19, 15:49
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 15:55
- Re: How can i check whether a file exists? - wodDamir, 2012-03-19, 15:49
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 15:26
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 15:19
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 15:10
- Re: How can i check whether a file exists? - wodDamir, 2012-03-19, 15:05
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 14:55
- Re: How can i check whether a file exists? - david.pearson@gmsl.co.uk, 2012-03-19, 14:40
- Re: How can i check whether a file exists? - wodDamir, 2012-03-19, 14:33