public function glob(string $pattern, int $flags = 0) : array
    {
        $files = glob($pattern, $flags);

        if ($files === false) {
            throw new FileSystemException("Glob failed for pattern \"$pattern\" with flags $flags");
        }

        return $files;
    }
public function glob(string $pattern, int $flags = 0) : array
    {
        $files = glob($pattern, $flags);

        if ($files === false) {
            throw new FileSystemException("Glob failed for pattern \"$pattern\" with flags $flags");
        }

        return $files;
    }
public function glob ( string $ pattern , int $ flags = 0 ) : array { $ files = glob ( $ pattern , $ flags ) ; if ( $ files === false ) { throw new FileSystemException ( "Glob failed for pattern \"$pattern\" with flags $flags" ) ; } return $ files ; }
Finds files that match a pattern

@link http://php.net/manual/function.glob.php

@param string $pattern The pattern to match on
@param int $flags The glob flags to use
@return array The list of matched files
@throws FileSystemException Thrown if the search failed
Finds files that match a pattern