private static function copyDirectory($sourcePath, $destinationPath, $globExpressionList)
    {
        $filesystem = new Filesystem();

        $flatFileListIterator = self::getFlatFileListIterator($sourcePath);
        $filteredFileListIterator = new BlacklistFilterIterator(
            $flatFileListIterator,
            $sourcePath,
            $globExpressionList
        );

        $filesystem->mirror($sourcePath, $destinationPath, $filteredFileListIterator, ["override" => true]);
    }
private static function copyDirectory($sourcePath, $destinationPath, $globExpressionList)
    {
        $filesystem = new Filesystem();

        $flatFileListIterator = self::getFlatFileListIterator($sourcePath);
        $filteredFileListIterator = new BlacklistFilterIterator(
            $flatFileListIterator,
            $sourcePath,
            $globExpressionList
        );

        $filesystem->mirror($sourcePath, $destinationPath, $filteredFileListIterator, ["override" => true]);
    }
private static function copyDirectory ( $ sourcePath , $ destinationPath , $ globExpressionList ) { $ filesystem = new Filesystem ( ) ; $ flatFileListIterator = self :: getFlatFileListIterator ( $ sourcePath ) ; $ filteredFileListIterator = new BlacklistFilterIterator ( $ flatFileListIterator , $ sourcePath , $ globExpressionList ) ; $ filesystem -> mirror ( $ sourcePath , $ destinationPath , $ filteredFileListIterator , [ "override" => true ] ) ; }
Copy whole directory using given glob filters.

@param string $sourcePath         Absolute path to directory.
@param string $destinationPath    Absolute path to directory.
@param array  $globExpressionList List of glob expressions, e.g. ["*.txt", "*.pdf"].
Copy whole directory using given glob filters .