diff options
author | admin <devnull@localhost> | 2006-10-21 21:44:22 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-21 21:44:22 +0200 |
commit | e334c472fb4be44feec3a73402fc4a2b062cbfc0 (patch) | |
tree | 553f17d67e7ef652016ec85b2a576bb2210f0ff8 /system/helpers/directory_helper.php | |
parent | bd6bee75dd26ade1c8d9cfd104bb913065797c59 (diff) |
Diffstat (limited to 'system/helpers/directory_helper.php')
-rw-r--r-- | system/helpers/directory_helper.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php index 4b7a383b2..e6ed47fd8 100644 --- a/system/helpers/directory_helper.php +++ b/system/helpers/directory_helper.php @@ -7,12 +7,12 @@ * @package CodeIgniter * @author Rick Ellis * @copyright Copyright (c) 2006, pMachine, Inc. - * @license http://www.codeignitor.com/user_guide/license.html + * @license http://www.codeignitor.com/user_guide/license.html * @link http://www.codeigniter.com * @since Version 1.0 * @filesource */ - + // ------------------------------------------------------------------------ /** @@ -45,14 +45,14 @@ function directory_map($source_dir, $top_level_only = FALSE) $filedata = array(); if ($fp = @opendir($source_dir)) - { + { while (FALSE !== ($file = readdir($fp))) { - if (@is_dir($source_dir.$file) && substr($file, 0, 1) != '.' AND $top_level_only == FALSE) - { + if (@is_dir($source_dir.$file) && substr($file, 0, 1) != '.' AND $top_level_only == FALSE) + { $temp_array = array(); - - $temp_array = directory_map($source_dir.$file."/"); + + $temp_array = directory_map($source_dir.$file."/"); $filedata[$file] = $temp_array; } @@ -60,9 +60,9 @@ function directory_map($source_dir, $top_level_only = FALSE) { $filedata[] = $file; } - } - return $filedata; - } + } + return $filedata; + } } |