File Not Found when extracting file with directory separator '/' from an ASAR package generated on Windows
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 265
- Avg merge
- 3h 52m
- Merged PRs (30d)
- 5
Description
I have an ASAR package that was generated on Windows using '\' directory separators. The file is located within the package at 'test\test1.json'. When I call asar.extractFile using the filepath as 'test/test1.json' the method throws a File Not Found exception. Some of the documentation I found states that using '/' is the proper way to reference the file within the archive.
I was expecting to be able to call asar.extractFile with a path using '/' on both Windows and Linux and have the library locate the file whether the archive was generated on Windows or Linux.
Is this a bug or would I need to detect the OS in use when generating the package and adjust my path to use the correct directory separator?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.