CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-fs-readdir-recursive

Recursively read a directory and return an array of all file paths

90

1.11x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates the engineer's ability to use the fs-readdir-recursive package for basic recursive directory reading. The focus is on correctly importing and calling the package's main function to obtain a list of files.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package Import",
      "description": "The solution correctly imports or requires the fs-readdir-recursive package (e.g., `const read = require('fs-readdir-recursive')` or `import read from 'fs-readdir-recursive'`)",
      "max_score": 20
    },
    {
      "name": "Function Call",
      "description": "The solution calls the imported function with the directory path as the first argument (e.g., `read(dirPath)` or `read(__dirname)`)",
      "max_score": 30
    },
    {
      "name": "Return Value Usage",
      "description": "The solution correctly uses the returned array of file paths from the function call (the function returns an array of strings representing relative file paths)",
      "max_score": 25
    },
    {
      "name": "No Manual Recursion",
      "description": "The solution relies on fs-readdir-recursive for recursive traversal rather than implementing manual recursive directory reading using fs.readdirSync and fs.statSync",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-fs-readdir-recursive

tile.json