How to use the copyFileSync function from graceful-fs
Find comprehensive JavaScript graceful-fs.copyFileSync code examples handpicked from public code repositorys.
62 63 64 65 66 67 68 69 70 71 72
} } function copyFile (srcStat, src, dest, opts) { if (typeof fs.copyFileSync === 'function') { fs.copyFileSync(src, dest) fs.chmodSync(dest, srcStat.mode) if (opts.preserveTimestamps) { return utimesSync(dest, srcStat.atime, srcStat.mtime) }
0
0
0
+ 2 other calls in file
graceful-fs.promises is the most popular function in graceful-fs (1135 examples)