Creates an on-disk or in-memory directory in the specified path
directoryCreate(path)
→ returns void
DirectoryCreate("//12.3.123.123/c_drive/test".
NOTE: You have to have the required permissions to run this function.
);
true
false
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.
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.