From: Tim Otten Date: Tue, 9 Feb 2016 18:45:40 +0000 (-0800) Subject: CRM_Utils_File::createDir - Better docs X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3daed292c71109e2fb873cfbf8b5fc2c525b0ab1;p=civicrm-core.git CRM_Utils_File::createDir - Better docs --- diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index f869d7604e..79a10a8607 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -102,10 +102,14 @@ class CRM_Utils_File { * 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);