code: function isSrcSubdir (src, dest) {
    const srcArray = path.resolve(src).split(path.sep)
    const destArray = path.resolve(dest).split(path.sep)
    return srcArray.reduce((acc, current, i) => acc && destArray[i] === current, true)
  }
docs: return true if dest is a subdir of src, otherwise false.