routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
Generated
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
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 ?? "/");
|
||||
}
|
||||
Reference in New Issue
Block a user