Skip to content
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

[Android] Wrong path separator #73

Open
ghost opened this issue Mar 27, 2017 · 0 comments
Open

[Android] Wrong path separator #73

ghost opened this issue Mar 27, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2017

Hi, I've noticed that the plugin was extracting files with the wrong path separator.
The output directory is cordova.file.dataDirectory and the plugin extracted the files to ../media\text\text.txt instead of ../media/text/text.txt so I have errors reading these files.
I temporary fix this by replacing the path separator in the src file:
(outputDirectory + compressedName).replace('\\', '/')

In addition, any chance to add a check for the already extracted files? It extracts all the files every time I call the zip method.

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants