Back

FolderExists

JS Py
Hello World

Checks if a given folder exits or not.

app.FolderExists( folder ) → Boolean

See Also: MakeFolder, CopyFolder, RenameFolder

Example - Example

function OnStart()
{
    if(app.FolderExists("myFolder"))
        app.ShowPopup("myFolder exists!");
    else
        app.ShowPopup("myFolder does not exist!");

}
from native import app

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