#159463 by hass (with phpdoc addition from myself): file_scan_directory() should not have a trailing slash in the dir parameter