We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using v0.3.3.
If the zip has a folder, and it exists, zip-local try to make it throwing an error
Error: EEXIST: file already exists, mkdir 'D:\clientes\ivan\tienda\web\test\myfolder' at Error (native)
I used this test:
Zip content:
gulp.task('test', function(cb) { var zipper = require('zip-local'); var FS = require('fs'); var folder = './test'; var zipFile = folder + '/test.zip'; zipper.unzip(zipFile, function(err, unzipped) { if (err) { return cb(err); } var outputFolder = FS.realpathSync(folder); unzipped.save(outputFolder, function(err) { if (err) { return cb(err); } cb(); //OK! }); }); });
Execute gulp test twice to see the error (when myfolder exists)
gulp test
The solution is, I think, to check if the folder exists before create it.
The text was updated successfully, but these errors were encountered:
added tests for issue #5
ed4ab0f
unzipping while a zipped directory already exists
added a replica of the unzipped hello.zip file for issue #5 testing
ebd2646
checked for directories existence before making them
8b63c53
fixing issue #5
Thank you for your feedback. The issue should be fixed now. Feel free to reopen the issue if you have any further problems.
Sorry, something went wrong.
No branches or pull requests
Using v0.3.3.
If the zip has a folder, and it exists, zip-local try to make it throwing an error
Error: EEXIST: file already exists, mkdir 'D:\clientes\ivan\tienda\web\test\myfolder' at Error (native)
I used this test:
Zip content:
Execute
gulp test
twice to see the error (when myfolder exists)The solution is, I think, to check if the folder exists before create it.
The text was updated successfully, but these errors were encountered: