µTasker Forum

µTasker Forum => utFAT => Topic started by: neil on November 08, 2013, 08:12:32 PM

Title: checking for file existance
Post by: neil on November 08, 2013, 08:12:32 PM
Hi Mark,
  Is there a command for checking if a file exists? I am using the open command, then closing if exists, but wondering if there is an easier way.

Thanks
Neil
Title: Re: checking for file existance
Post by: mark on November 08, 2013, 10:22:25 PM
Hi Neil

The method that you are using is a good method. It would be possible to add a specific function that returns success when the file does (or doesn't) exist but it will essentially need to do the same work.

I am presently coming to completion of utFAT V2.0 which contains various new functions and capabilities, so if you think that there would be an advantage in having such a function please recommend its prototype which would best suit your use case.

Regards

Mark
Title: Re: checking for file existance
Post by: neil on November 09, 2013, 06:49:02 AM
Hi Mark
  I think it would be handy having an access(..) command similar to the windows version.

Best Regards
Neil