Back

FileExists

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!");
    }

}
    Copy     Copy All       Run      
string: path to file or folder ( “/absolute/...” or “relative/...” )