Back

FileExists

JS Py
Hello World

FileExists Checks if a given file exists in your filesystem or not.

app.FileExists( file ) → Boolean

See Also: WriteFile, CopyFile, RenameFile

Example - Example

function OnStart()
{
    if(app.FileExists("myFile.txt")) {
        app.ShowPopup("myFile exists!");
    } else {
        app.ShowPopup("myFile does not exist!");
    }

}
from native import app

def OnStart():
    if app.FileExists("myFile.txt"):
        app.ShowPopup("myFile exists!")
    else:
        app.ShowPopup("myFile does not exist!")
    Copy     Copy All       Run      
String: path to file ( “/absolute/...” or “relative/...” )