(src, dest)
| 187 | // Return true if dest is a subdir of src, otherwise false. |
| 188 | // It only checks the path strings. |
| 189 | function isSrcSubdir(src, dest) { |
| 190 | const srcArr = normalizePathToArray(src); |
| 191 | const destArr = normalizePathToArray(dest); |
| 192 | return ArrayPrototypeEvery(srcArr, (cur, i) => destArr[i] === cur); |
| 193 | } |
| 194 | |
| 195 | async function getStatsForCopy(destStat, src, dest, opts) { |
| 196 | const statFn = opts.dereference ? stat : lstat; |
no test coverage detected