code: function isInsideDir(dir, targetDir) {
    if (targetDir == dir) return false
    if (targetDir == '.') return dir
    const relative = path.relative(targetDir, dir)
    if (/^\.\./.test(relative)) return false
    return relative
  }
docs: If dir is inside targetDir, return the relative path
  If else, return false