WARNING: Cannot create path for resource file ....

In the DOS window I get this a lot.

WARNING: Cannot create path for resource file …

I test the return value, if it’s nil, then I know the file does not exist, so I do not need this warning, how do I turn it off? I notice it does not appear in the GliderIDE output window.

thanks

Hi @prographodeveloper,

You may want to experiment with the LFS (LuaFileSystem) library. I haven’t used it often, but I think you could check the attributes of the file and it would return nil (assuming it doesn’t exist), but not issue you a warning in the console.

http://docs.coronalabs.com/api/library/lfs/index.html

Best regards,

Brent

Hi @prographodeveloper,

You may want to experiment with the LFS (LuaFileSystem) library. I haven’t used it often, but I think you could check the attributes of the file and it would return nil (assuming it doesn’t exist), but not issue you a warning in the console.

http://docs.coronalabs.com/api/library/lfs/index.html

Best regards,

Brent