1 export function toUnixSlash(path: string) {
2 const isExtendedLengthPath = path.startsWith("\\\\?\\")
3 if (isExtendedLengthPath) {
4 return path
5 }
6
7 return path.replace(/\\/g, "/")
8 }