Security update for Core, with self-updated composer
[yaffs-website] / vendor / drush / drush / includes / filesystem.inc
index 14bf055c1cef30bd6d5f69864991caaa34bd007f..0d0f49935a62cce5313d00c35341cd0bf5f85fe3 100644 (file)
@@ -680,7 +680,7 @@ function drush_scan_directory($dir, $mask, $nomask = array('.', '..', 'CVS'), $c
   $files = array();
 
   // Exclude Bower and Node directories.
-  $nomask = array_merge($nomask, array('node_modules', 'bower_components'));
+  $nomask = array_merge($nomask, drush_get_option_list('ignored-directories', array('node_modules', 'bower_components')));
 
   if (is_string($dir) && is_dir($dir) && $handle = opendir($dir)) {
     while (FALSE !== ($file = readdir($handle))) {