function mkdir_p in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
Creates a new directory if it doesn't exist already.
Also, creates parent directories if needed.
Parameters
string $dir: Directory to create.
1 call to mkdir_p()
- 000-acquia_required_scrub.php in acsf_init/
lib/ cloud_hooks/ common/ post-db-copy/ 000-acquia_required_scrub.php - Scrubs a site after its database has been copied.
File
- acsf_init/
lib/ cloud_hooks/ common/ post-db-copy/ 000-acquia_required_scrub.php, line 35 - Scrubs a site after its database has been copied.
Code
function mkdir_p(string $dir) {
if (!file_exists($dir)) {
mkdir($dir, 0777, TRUE);
}
}