function hasFile(files, file) {
	if (files instanceof Set) {
		for (const dir of files) {
			if (isEqualPath(dir, file)) {
				return true;
			}
		}
	}
	if (files instanceof Map) {
		for (const dir of files.keys()) {
			if (isEqualPath(dir, file)) {
				return true;
			}
		}
	}
	return false;
}
@param {Map<string, number>|Set<string>} files Collection of files to check against
@param {string} file File path to check
@returns {boolean} True if the file or its parent exists in the collection