summaryrefslogtreecommitdiffstats
path: root/system/helpers/directory_helper.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-04-27 17:36:50 +0200
committerTimothy Warren <tim@timshomepage.net>2012-04-27 17:36:50 +0200
commit01b129a42b62fd08cd873f44ded026041b560420 (patch)
treed34d5e987196bccd19684388e4f161c8a66269b5 /system/helpers/directory_helper.php
parent2fbd57d6d58afd64caa841a876e9773272275526 (diff)
Fix docblocks A-H
Diffstat (limited to 'system/helpers/directory_helper.php')
-rw-r--r--system/helpers/directory_helper.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php
index 4044ace11..bda8fe8bb 100644
--- a/system/helpers/directory_helper.php
+++ b/system/helpers/directory_helper.php
@@ -37,19 +37,20 @@
// ------------------------------------------------------------------------
-/**
- * Create a Directory Map
- *
- * Reads the specified directory and builds an array
- * representation of it. Sub-folders contained with the
- * directory will be mapped as well.
- *
- * @param string path to source
- * @param int depth of directories to traverse (0 = fully recursive, 1 = current dir, etc)
- * @return array
- */
if ( ! function_exists('directory_map'))
{
+ /**
+ * Create a Directory Map
+ *
+ * Reads the specified directory and builds an array
+ * representation of it. Sub-folders contained with the
+ * directory will be mapped as well.
+ *
+ * @param string path to source
+ * @param int depth of directories to traverse (0 = fully recursive, 1 = current dir, etc)
+ * @param bool whether to show hidden files
+ * @return array
+ */
function directory_map($source_dir, $directory_depth = 0, $hidden = FALSE)
{
if ($fp = @opendir($source_dir))