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
Ubuntu - Decompressed folder is left without any permissions 0000 #24
Comments
For now you can use the |
I use '755' when calling Decompress.
|
I have encountered the same issue here. Permissions are always set to '000' and the "mode" option doesn't seem to work. |
I am redoing this module so expect a fix soon-ish. |
I have the same problem when downloading a zip file (if this helps): const GENFATFS_URL="https://github.com/NodeOS/genfatfs/archive/master.zip"
const SRC_DIR='deps/genfatfs'
Download({ extract: true, strip: 1 })
.get(GENFATFS_URL, SRC_DIR)
// .use(progress())
.run(function(error)
{
...
]) |
I am also getting this error. It is fixed by running as +1 |
+1 |
Since
Update: Only works for flat ZIP files. Use the fix from below. |
@einfallstoll that doesn't work (for me) since run itself will fail with an EACCESS if the zip contains files in subdirectories. |
Patching Please @kevva get it merged and do a patch release of decompress with the updated unzip. |
@FokkeZB Oh, I see. I only decompressed flat zips so far. As long as it's not merged it should work to |
+1 |
Having the same issue. Trying to unzip a file on Ubuntu gives a |
+1 me too.. very urgent, last sprint.. :( I see it in centos too.. However - I don't see it in unit testing.. which is weird. when I run a test, it seems to extract well. UPDATE - seems some zip files (still containing multiple folders) are extracted well. so this bug does not apply to all archives.. Here is a link to a zip file that I successfully extracted. Can anyone help pin point the scenarios in which is happens? |
Just ran in to this on OSX too. Even with using a flat |
Should be fixed in |
|
When I run my server in Ubuntu (Ubuntu 14.04 LTS) the decompressed destination folder is left without any permissions.
var decompress = new Decompress({mode: '755'});
decompress.src(file).dest(destFolder).use(Decompress.zip).run(function (err) {
if (err)
throw err;
});
I get a Error: EACCES, open
When I check destFolder I find it was created without any permissions (octal: 0000).
This forces me to run as sudo which really isn't ideal.
Please help.
The text was updated successfully, but these errors were encountered: