directoryExists

Determines whether a directory exists.

directoryExists(absolute_path) → returns boolean

directoryExists Argument Reference

absolute_path string
Required

Examples sample code invoking the directoryExists function

Checking if a directory called 'icons' exists and then creating the directory if it does not exist.

if (!directoryExists(expandPath('/assets/img/icons'))) {
	directoryCreate('assets/img/icons');
}

Expected Result: The directory 'icons' will be created under the img folder.


Fork me on GitHub