CodeIgniter Forums
file helper @ CI 1.7.0 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: file helper @ CI 1.7.0 (/thread-13296.html)



file helper @ CI 1.7.0 - El Forum - 11-17-2008

[eluser]Unknown[/eluser]
Hi.

I found a *somewhat-i-considered-a-bug* on CI version 1.7. It's on the get_dir_file_info method. When I execute it, I only got the first file, no matter the recursion was set to true or false.

It seems that the *bug* is located on line 242. So, I made a change inside the method by altering line 242 with this one:

array_push($_filedata, get_dir_file_info($source_dir.$file.DIRECTORY_SEPARATOR, $include_path, TRUE));

Cheers