Cross-platform recursive file copying library that replicates Unix 'cp -R' command functionality
Agent Success
Agent success rate when using this tile
66%
Improvement
Agent success rate improvement when using this tile compared to baseline
1x
Baseline
Agent success rate without this tile
66%
Ensure every directory from a template tree, including empty ones, exists under a target root without deleting any existing sibling content.
data/cache and a target already containing data/uploads/file.txt, running the copier creates data/cache under the target while leaving data/uploads/file.txt untouched. @testconfigs/env/dev, the copier ensures the full path exists in the target even if intermediate directories are missing. @test@generates
/**
* Ensure all directories from a template path exist under a target root without deleting existing siblings or their contents.
*
* @param {string} templateRoot absolute path to the template directory that may contain empty folders
* @param {string} targetRoot absolute path to the destination root
* @returns {Promise<string[]>} absolute paths of directories ensured or created in the target
*/
async function ensureTemplateDirectories(templateRoot, targetRoot) {}Provides recursive copy support for directories and files, preserving modes.
tessl i tessl/npm-cpr@3.0.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10