CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-cpr

Cross-platform recursive file copying library that replicates Unix 'cp -R' command functionality

66

1.00x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "Evaluates how well the solution uses the cpr package to copy a source tree into a new target while creating missing directories, preserving file permissions, and optionally verifying copied paths. Checks are limited to correct invocation of cpr features rather than general coding quality.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "cpr usage",
      "description": "Invokes the cpr API (or cpr.cpr alias) as the primary mechanism for recursive copying instead of manual fs operations.",
      "max_score": 25
    },
    {
      "name": "Permission parity",
      "description": "Configures copying so destination files keep source mode bits; avoids steps that reset permissions and verifies modes via fs.stat when needed.",
      "max_score": 20
    },
    {
      "name": "Dir creation",
      "description": "Relies on cpr to create missing parent directories for the target tree rather than pre-building them manually.",
      "max_score": 20
    },
    {
      "name": "Verify option",
      "description": "When the spec's verify flag is set, maps it to cpr's confirm option to re-stat copied paths and surfaces errors when any path is missing.",
      "max_score": 20
    },
    {
      "name": "Returned paths",
      "description": "Returns the list of destination paths produced by cpr (from the callback or promise) sorted as required, handling aggregated errors (err.list) appropriately.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-cpr

tile.json