(src, dest, opts)
| 125 | } |
| 126 | |
| 127 | function getStats(src, dest, opts) { |
| 128 | const statFunc = opts.dereference ? |
| 129 | (file) => stat(file, { bigint: true }) : |
| 130 | (file) => lstat(file, { bigint: true }); |
| 131 | return SafePromiseAll([ |
| 132 | statFunc(src), |
| 133 | PromisePrototypeThen(statFunc(dest), undefined, (err) => { |
| 134 | if (err.code === 'ENOENT') return null; |
| 135 | throw err; |
| 136 | }), |
| 137 | ]); |
| 138 | } |
| 139 | |
| 140 | async function checkParentDir(destStat, src, dest, opts) { |
| 141 | const destParent = dirname(dest); |
no test coverage detected
searching dependent graphs…