CRM_Utils_File::createDir - Better docs
authorTim Otten <totten@civicrm.org>
Tue, 9 Feb 2016 18:45:40 +0000 (10:45 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 9 Feb 2016 18:47:54 +0000 (10:47 -0800)
CRM/Utils/File.php

index f869d7604ef9f592331d2a0c10844ff7f0875989..79a10a860782c3356df120aae0af72b4ff01b2ad 100644 (file)
@@ -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);