Files
routie/frontend/node_modules/@apidevtools/json-schema-ref-parser/lib/util/convert-path-to-posix.ts
T

12 lines
284 B
TypeScript

import path from "path";
export default function convertPathToPosix(filePath: string) {
const isExtendedLengthPath = filePath.startsWith("\\\\?\\");
if (isExtendedLengthPath) {
return filePath;
}
return filePath.split(path?.win32?.sep).join(path?.posix?.sep ?? "/");
}