_iterateFilesWithGlob(pattern, dotfiles) {
		debug(`Glob: ${pattern}`);

		const { cwd } = internalSlotsMap.get(this);
		const directoryPath = path.resolve(cwd, getGlobParent(pattern));
		const absolutePath = path.resolve(cwd, pattern);
		const globPart = absolutePath.slice(directoryPath.length + 1);

		/*
		 * recursive if there are `**` or path separators in the glob part.
		 * Otherwise, patterns such as `src/*.js`, it doesn't need recursive.
		 */
		const recursive = /\*\*|\/|\\/u.test(globPart);
		const selector = new Minimatch(absolutePath, minimatchOpts);

		debug(`recursive? ${recursive}`);

		return this._iterateFilesRecursive(directoryPath, {
			dotfiles,
			recursive,
			selector,
		});
	}
Iterate files which are matched by a given glob pattern.
@param {string} pattern The glob pattern to iterate files.
@param {boolean} dotfiles If `true` then it doesn't skip dot files by default.
@returns {IterableIterator<FileEntry>} The found files.
@private