CodeIgniter Forums
file helper @ CI 1.7.0 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: file helper @ CI 1.7.0 (/showthread.php?tid=13296)



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