From 3daed292c71109e2fb873cfbf8b5fc2c525b0ab1 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 9 Feb 2016 10:45:40 -0800 Subject: [PATCH] CRM_Utils_File::createDir - Better docs --- CRM/Utils/File.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.25.1