Cross-platform recursive file copying library that replicates Unix 'cp -R' command functionality
66
Create a module that replicates a directory tree while verifying that every copied path exists on disk immediately after the operation.
sourceDir to targetDir returns a sorted array of destination paths, and each reported path exists on disk after verification. @test/\\.log$/), the returned path list omits those items and verification does not expect them to exist. @test@generates
export interface CopyOptions {
overwrite?: boolean;
filter?: RegExp | ((path: string) => boolean);
}
export function replicateWithVerification(
source: string,
destination: string,
options?: CopyOptions
): Promise<string[]>;Recursive copy utility with built-in post-copy verification of copied paths. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-cprdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10