Changeset 3347
- Timestamp:
- 08/17/2008 09:28:40 AM (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r3346 r3347 1004 1004 1005 1005 /** 1006 * Lists all files and directoriesin a resource path.1006 * Lists all files in a resource path. 1007 1007 * 1008 1008 * @param string directory to search 1009 1009 * @param boolean list all files to the maximum depth? 1010 * @param string full path to search (used for recursion, *never* set this manually) 1011 * @return array filenames and directories 1010 * @return array resolved filename paths 1012 1011 */ 1013 1012 public static function list_files($directory, $recursive = FALSE) 1014 1013 { 1015 1014 $files = array(); 1016 1017 1015 $paths = array_reverse(Kohana::include_paths()); 1018 1016 … … 1032 1030 if ($file->isDir()) 1033 1031 { 1034 if ($recursive == TRUE)1032 if ($recursive === TRUE) 1035 1033 { 1036 1034 // Recursively add files … … 1062 1060 { 1063 1061 $files = array(); 1064 1065 1062 $paths = array_reverse(Kohana::include_paths()); 1066 1063
