parse-filepath icon indicating copy to clipboard operation
parse-filepath copied to clipboard

Not parsing windows path separators correctly

Open andela-mallan opened this issue 1 year ago • 0 comments

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",
  ...
}

andela-mallan avatar Oct 25 '23 12:10 andela-mallan