{"action":"created","issue":{"url":"https://api.github.com/repos/archiverjs/node-archiver/issues/140","labels_url":"https://api.github.com/repos/archiverjs/node-archiver/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/archiverjs/node-archiver/issues/140/comments","events_url":"https://api.github.com/repos/archiverjs/node-archiver/issues/140/events","html_url":"https://github.com/archiverjs/node-archiver/issues/140","id":85572677,"number":140,"title":"set directory permissions with bulk()","user":{"login":"nfriedly","id":114976,"avatar_url":"https://avatars.githubusercontent.com/u/114976?v=3","gravatar_id":"","url":"https://api.github.com/users/nfriedly","html_url":"https://github.com/nfriedly","followers_url":"https://api.github.com/users/nfriedly/followers","following_url":"https://api.github.com/users/nfriedly/following{/other_user}","gists_url":"https://api.github.com/users/nfriedly/gists{/gist_id}","starred_url":"https://api.github.com/users/nfriedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfriedly/subscriptions","organizations_url":"https://api.github.com/users/nfriedly/orgs","repos_url":"https://api.github.com/users/nfriedly/repos","events_url":"https://api.github.com/users/nfriedly/events{/privacy}","received_events_url":"https://api.github.com/users/nfriedly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-05T16:21:58Z","updated_at":"2015-06-05T20:15:02Z","closed_at":"2015-06-05T19:01:06Z","body":"Hi, I have some code like this:\r\n\r\n```js\r\n  zip.bulk([\r\n    { expand: true, cwd: sourceDir,  src: ['**', '**/.htaccess'], data: { mode: 0644 }  }\r\n  ]);\r\n```\r\nAnd I've noticed that when creating a .zip, the `mode` is applied to files but not directories. (The directory permissions on the disk are 755, but the resulting .zip has 700.) \r\n\r\nI'm working on a mac, and I believe I've seen similar behavior on linux, so I'm not sure if this is related to the other open bugs or not. Either way, if there is a feature that lets me set directory permissions when doing a bulk operation that would be ideal, because I know what output permissions I want regardless of what they are on disk.\r\n\r\n(I glanced at the new `.directory()` method, but I didn't see anything different there. And I'm guessing that it would drop the .htaccess file, so it probably wouldn't work for me anyway.)\r\n\r\nAny thoughts? Should I just add a `directoryData` option and send a PR?"},"comment":{"url":"https://api.github.com/repos/archiverjs/node-archiver/issues/comments/109427669","html_url":"https://github.com/archiverjs/node-archiver/issues/140#issuecomment-109427669","issue_url":"https://api.github.com/repos/archiverjs/node-archiver/issues/140","id":109427669,"user":{"login":"ctalkington","id":209757,"avatar_url":"https://avatars.githubusercontent.com/u/209757?v=3","gravatar_id":"","url":"https://api.github.com/users/ctalkington","html_url":"https://github.com/ctalkington","followers_url":"https://api.github.com/users/ctalkington/followers","following_url":"https://api.github.com/users/ctalkington/following{/other_user}","gists_url":"https://api.github.com/users/ctalkington/gists{/gist_id}","starred_url":"https://api.github.com/users/ctalkington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctalkington/subscriptions","organizations_url":"https://api.github.com/users/ctalkington/orgs","repos_url":"https://api.github.com/users/ctalkington/repos","events_url":"https://api.github.com/users/ctalkington/events{/privacy}","received_events_url":"https://api.github.com/users/ctalkington/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T20:15:02Z","updated_at":"2015-06-05T20:15:02Z","body":"fyi if you need this right now, archiver@0.15.0 should now work as a semver match since 0.15.0-1 (alpha) is now published."}}