-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Subdirs in zip have wrong file attributes #76
Comments
Is there a proper fix for this? |
Thanks @dayanand-saraswati for your comment, I haven't found one yet. |
Same issue. Any news? |
I have fixed the problem by use gulp-chmod. |
@lfire does gulp-chmod work if it's execute on Windows platform? |
@Noitidart yes, but I find another problem. |
@Noitidart The problem was solved, and the reason is use the wrong param. |
Thank you very much sir @lfire this is a superb work around till gulp-zip is fixed, thank you very very much! |
the same issue |
Ran into this problem the past week. Here is an update of the current state of this problem. In my opinion the underlaying issue is not with any of these npm packages, nor with Node.js itself. gulp-zip merely creates explicit directory entries in the zip file, copying their permissions. yazl, the actual package used to compress, always makes UNIX like archives. Other Windows archivers (like 7-Zip) make FAT archives witch avoid problems with permissions. See: yazl docs and this Unlike Linux, Windows doesn't require that directories be executable in order to allow access.
This comment explains it very well. @lfire's solution and this one work very well for the moment. One solution, if @sindresorhus agrees, is for this package to check if running on Windows and make sure a directory has execution permission before adding it to the archive. |
The same problem. Moved to https://github.com/joaomoreno/gulp-vinyl-zip since this issue still not resolved. |
@issuehunt has funded $40.00 to this issue.
|
This is breaking issue for |
@sindresorhus has rewarded $36.00 to @jimbly. See it on IssueHunt
|
Similar to this topic here - #62
This is still happening to me but only on SUB-directories, I am using v3.2.0 - however what I do differently is my main system is Windows. So I run the gulp script on my Windows system and when I send my zip to others who open it on Ubuntu they see this:
The first level directories are fine, but directories inside those directories are like this.
First level directories are fine:
IssueHunt Summary
jimbly has been rewarded.
Backers (Total: $40.00)
Submitted pull Requests
Tips
The text was updated successfully, but these errors were encountered: