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

gulp-zip changing the folder permission from 755 to 775 present in zip file #62

Closed
PrachiThengane opened this issue Jan 11, 2016 · 3 comments

Comments

@PrachiThengane
Copy link

Task written is as below:

gulp.task('default', function () {
        return gulp.src('*')
                .pipe(zip('archive.zip'))
                .pipe(gulp.dest('./'));
});
@SamVerschueren
Copy link

Can you please provide more information. I'm afraid I don't entirely understand the problem from your title alone.

@PrachiThengane
Copy link
Author

Hi Sam,
My aim is to create a zip of Test folder and Test folder has several files and folders. gulpfile.js is present inside the Test folder.

Below are the contents of my gulpfile.js.

var gulp = require('gulp');
var zip = require('gulp-zip');
gulp.task('zipping', function () {
return gulp.src('*')
.pipe(zip('archive.zip'))
.pipe(gulp.dest('./'));
});

Before running zip task (using gulp) I have set the permissions of all files and folders to 644 and 755 respectively.
This permission gets altered to 644 for files and 775 for folders after running above zipping task.
Permission should remain same.
How can I fix this. Am I missing anything?

@sindresorhus
Copy link
Owner

Seems I forgot to set the mode when creating directories. Can you try 864a8fd?

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

3 participants