projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7cc6e5
)
CRM_Utils_File::createDir - Better docs
author
Tim Otten
<totten@civicrm.org>
Tue, 9 Feb 2016 18:45:40 +0000
(10:45 -0800)
committer
Tim Otten
<totten@civicrm.org>
Tue, 9 Feb 2016 18:47:54 +0000
(10:47 -0800)
CRM/Utils/File.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/File.php
b/CRM/Utils/File.php
index f869d7604ef9f592331d2a0c10844ff7f0875989..79a10a860782c3356df120aae0af72b4ff01b2ad 100644
(file)
--- 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);