Recursively read a directory and return an array of all file paths
90
A utility that recursively lists all files in a project directory and outputs them to the console.
@generates
/**
* Lists all files in a directory recursively
* @param {string} dirPath - The directory path to scan
* @returns {string[]} Array of relative file paths
*/
function listFiles(dirPath) {
// IMPLEMENTATION HERE
}
module.exports = { listFiles };Provides recursive directory reading functionality.
Install with Tessl CLI
npx tessl i tessl/npm-fs-readdir-recursive