docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
A utility that filters file paths in a directory structure to find files matching specific patterns across multiple directory levels.
**/*.js, it returns only JavaScript files at any depth level @testsrc/**/*.test.js, it returns only test files within the src directory tree @test['a/file.txt', 'a/b/file.txt', 'a/b/c/file.txt'] with pattern a/**/file.txt, it returns all three files @test/**
* Filters an array of file paths against a glob pattern.
*
* @param {string[]} paths - Array of file paths to filter
* @param {string} pattern - Glob pattern to match against
* @returns {string[]} Array of matching file paths
*/
function filterPaths(paths, pattern) {
// IMPLEMENTATION HERE
}
module.exports = { filterPaths };Provides glob pattern matching with globstar support for multi-level directory traversal.