parse-filepath
parse-filepath copied to clipboard
Not parsing windows path separators correctly
Filepath: C:\\Program Files\\Projects\\Example\\launchFile.exe
Result:
{
name: "C:\\Program Files\\Projects\\Example\\launchFile",
basename: "C:\\Program Files\\Projects\\Example\\launchFile.exe",
dirname: "",
ext: ".exe",
isAbsolute: false,
...
}
Expected Result:
{
name: "launchFile",
basename: "launchFile.exe",
dirname: "C:\\Program Files\\Projects\\Example",
ext: ".exe",
...
}