Update folder.php

Function files() to return always array().
Change API to fix the root code instead of : https://github.com/joomla/joomla-cms/pull/4057#issuecomment-50973588