EllisLab/CodeIgniter — comment on commit 8bf6bb654da32626e9c3a4e40f9ca7ea464a9e19
File: system/helpers/file_helper.php line 262
By aquariuz:

Should be `closedir($fp)` as `closedir` closes the directory handle, not the directory path.