_iterateFiles(pattern) {
		const { cwd, globInputPaths } = internalSlotsMap.get(this);
		const absolutePath = path.resolve(cwd, pattern);
		const isDot = dotfilesPattern.test(pattern);
		const stat = statSafeSync(absolutePath);

		if (stat && stat.isDirectory()) {
			return this._iterateFilesWithDirectory(absolutePath, isDot);
		}
		if (stat && stat.isFile()) {
			return this._iterateFilesWithFile(absolutePath);
		}
		if (globInputPaths && isGlobPattern(pattern)) {
			return this._iterateFilesWithGlob(pattern, isDot);
		}

		return [];
	}
Iterate files which are matched by a given glob pattern.
@param {string} pattern The glob pattern to iterate files.
@returns {IterableIterator<FileEntry>} The found files.