Skip to content

Commit

Permalink
CRM_Utils_File::createDir - Better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Feb 9, 2016
1 parent f7cc6e5 commit 3daed29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CRM/Utils/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ public static function isHtml($name) {
* The path name.
* @param bool $abort
* Should we abort or just return an invalid code.
* @return bool|NULL
* NULL: Folder already exists or was not specified.
* TRUE: Creation succeeded.
* FALSE: Creation failed.
*/
public static function createDir($path, $abort = TRUE) {
if (is_dir($path) || empty($path)) {
return;
return NULL;
}

CRM_Utils_File::createDir(dirname($path), $abort);
Expand Down

0 comments on commit 3daed29

Please sign in to comment.