-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows path issues #18
Comments
I've created pull request #19 that fixes this (tested on Windows only, but I don't see why it wouldn't also work on Linux and OS X). |
Yes, yazl is compatible with Windows, but the zip file format does not allow native Windows paths, as I'm sure you've discovered. This is documented in yazl's API "A valid #19 adds a convenience layer of translation for the However, #19 also calls In general, I don't want yazl's API to be too high-level, but translating Windows paths to Unix paths seems ok. I'll take some action on this when i get home later today. |
I've previously used path.* helpers to abstract away any platform specific tasks, including normalizing the path for any OS that might be running the app. That said, I agree that it shouldn't be necessary here, and I only included it due to old habits dying hard. Simply doing the slash conversion should work just fine. I'll be happy with any solution, as long as this gets addressed at some point. :) |
I'll make a release when I get #6 implemented as well. |
Never mind. 2.3.0 is released now with this change. |
I'm using path.normalize() basically everywhere, but yazl is throwing me the following error:
Is yazl cross-platform/compatible with Windows?
The text was updated successfully, but these errors were encountered: