Change record status: 
Project: 
Introduced in branch: 
8.x
Introduced in version: 
8.0
Description: 

file_scan_directory() has an $options array argument that provides a list of various options to affect the collection and processing of files. The value for the 'nomask' key specifies a pattern to exclude files from the list.

In Drupal 7 this was specified by default to exclude the all entries starting with a dot (current and parent directory item and all "hidden files") and the CVS directory (used to be used by the version control system utilized for Drupal development). That default value was '/(\.\.?|CVS)$/.

In Drupal 8, all entries starting with a . are excluded (this cannot be turned off). The 'nomask' value can still be used to remove other items as well. There is no default value anymore (no further filtering is done by default).

Impacts: 
Module developers