Maybe it has changed over time, but it seems that you can't use

    $files = file_scan_directory($dir, '.', '/(\.\.?|CVS)$/');

anymore: the third parameter must be an array.

Btw, the default value for $umask (the third parameter) is array('.', '..', 'CVS'), so I think you could even remove it from the call.

Comments

slantview’s picture

Status: Active » Closed (fixed)