Back

FileExists

FileExists checks if a file exists in the internal or external storage and returns "true" or "false".

app.FileExists( file ) -> boolean

Example - Example



function OnStart()
{
    exists = app.FileExists( "/sdcard/wftest.txt" );
    app.ShowPopup( exists );
}
    Copy     Copy All       Run      

string - path to file or folder ( "/absolute/..." or "relative/..." )