@@ 182-186 (lines=5) @@ | ||
179 | if ($fp = @opendir($source_dir)) |
|
180 | { |
|
181 | // reset the array and make sure $source_dir has a trailing slash on the initial call |
|
182 | if ($_recursion === FALSE) |
|
183 | { |
|
184 | $_filedata = array(); |
|
185 | $source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
186 | } |
|
187 | ||
188 | while (FALSE !== ($file = readdir($fp))) |
|
189 | { |
|
@@ 233-237 (lines=5) @@ | ||
230 | if ($fp = @opendir($source_dir)) |
|
231 | { |
|
232 | // reset the array and make sure $source_dir has a trailing slash on the initial call |
|
233 | if ($_recursion === FALSE) |
|
234 | { |
|
235 | $_filedata = array(); |
|
236 | $source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
237 | } |
|
238 | ||
239 | // Used to be foreach (scandir($source_dir, 1) as $file), but scandir() is simply not as fast |
|
240 | while (FALSE !== ($file = readdir($fp))) |