MCPcopy
hub / github.com/vercel/next.js / copyIfExists

Function copyIfExists

bench/render-pipeline/benchmark.ts:827–834  ·  view source on GitHub ↗
(fromPath: string, toPath: string)

Source from the content-addressed store, hash-verified

825}
826
827async function copyIfExists(fromPath: string, toPath: string) {
828 try {
829 await access(fromPath)
830 await copyFile(fromPath, toPath)
831 } catch {
832 // Ignore missing optional traces.
833 }
834}
835
836function printFullResults(results: FullRunResult[]) {
837 console.log('\nFULL APP-RENDER BENCHMARKS (end-to-end request path)')

Callers 1

runFullModeBenchmarkFunction · 0.85

Calls 2

accessFunction · 0.85
copyFileFunction · 0.50

Tested by

no test coverage detected