So I have 2 methods of finding out if a file exists. They are both really slow, i’d assume the second method would be faster but is actually even slower. is there some way to just basically see if a file is there without having to load the actual content of the file into memory?
local path = system.pathForFile( filepath, system.DocumentsDirectory )
local myFile = io.open( path, "r" )
io.close(myFile);
local path = system.pathForFile( filepath, system.DocumentsDirectory )
local myFile = io.type(path);
[import]uid: 6317 topic_id: 2324 reply_id: 302324[/import]