The other day I created a new module for Drupal 5-b2 with textmate for OS X. I created the files on a networked linux drive.

the .info and .module files have a 'hidden' (on os x and linux) ._ prefixed file with the same name, IE:

._modulename.module and ._modulename.info

Drupal picked these files up and showed a blank row just above the 'real' modules on the admin > modules page.

Obviously I could just ignore it or remove the files, but I think the module page should filter out anything with a . prefix.

Comments

ChrisKennedy’s picture

Component: base system » system.module

Confirmed this on linux as well.

The question then is: should drupal_system_listing() never return . files, or should module_rebuild_cache() be modified to ignore any . files?

ChrisKennedy’s picture

Status: Active » Fixed

Fixed in http://drupal.org/node/91592 by modifying file_scan_directory() to ignore all hidden files and directories.

Anonymous’s picture

Status: Fixed » Closed (fixed)