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;
    }