The FS API is modeled after posix, which I believe doesn't have a direct way to do this. Instead, you try to open() the file and see if you get an error. For us, that means trying to open the file, and catching an exception if one is thrown.
On Thu, Dec 3, 2015 at 11:13 PM, ZengRui Wang <[email protected]> wrote: > Hi, > Is there any function to check if a file exist in VFS instead of throwing > exception of non-existence file or directory? > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
