docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
Build a utility that validates the presence of required files and directories in a project structure.
/**
* Checks if a single path (file or directory) exists.
*
* @param {string} path - The file or directory path to check
* @returns {boolean} true if the path exists, false otherwise
*/
function validatePath(path) {
// IMPLEMENTATION HERE
}
/**
* Validates multiple paths and returns their existence status.
*
* @param {string[]} paths - Array of file or directory paths to check
* @returns {boolean[]} Array of booleans indicating existence of each path
*/
function validatePaths(paths) {
// IMPLEMENTATION HERE
}
module.exports = {
validatePath,
validatePaths
};Provides in-memory filesystem operations for testing purposes.