-
Notifications
You must be signed in to change notification settings - Fork 126
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
empty directories are not created #6
Comments
here's the line causing the issue: https://github.com/maxogden/extract-zip/blob/master/index.js#L28-L31 basically in extract-zip I ignore 'directory' entries, I wait until there's a file and create the directory then: https://github.com/maxogden/extract-zip/blob/master/index.js#L89 apparently all the |
@maxogden, what sort of help are you looking for here? |
@smebberson hi, thanks for asking. Here's what I think a PR would need:
If you have any specific code questions let me know |
@maxogden, okay, doesn't seem too difficult. I just had a look and there doesn't seem to be what I'd call a test framework in place... what are you thinking a 'basic test' would look like? |
@smebberson oh sorry about that. I usually use I also remembered another aspect of this which might be more difficult. Currently it does It would work, it would just be somewhat inefficient. One thing we could do is have an in-memory cache of folders that have already had |
I think a simple in-memory cache would be best, much quicker than Reading through the code, I think it would be best to push both directories and files into the If you're cool with that, I'll give it a shot, and I'll write a test, and rewrite the current test using |
@maxogden, PR #9 is now complete and empty directories are created successfully. Please review the PR with a merge and Because the |
Fix for #6 (empty directories are not created)
fixed in 1.1.0 |
I download package electron-v0.30.2-darwin-x64.zip from electron repository at https://github.com/atom/electron/releases/tag/v0.28.1
I write the following and execute it with node:
It extract these files
when it should have extracted these files:
The text was updated successfully, but these errors were encountered: