export function normalizePath()

in eng/tools/typespec-validation/src/utils.ts [30:36]


export function normalizePath(folder: string, path: PlatformPath = defaultPath) {
  return path
    .resolve(folder)
    .split(path.sep)
    .join("/")
    .replace(/^([a-z]):/, (_match, driveLetter) => driveLetter.toUpperCase() + ":");
}