{"action":"created","issue":{"url":"https://api.github.com/repos/mafintosh/tar-fs/issues/23","labels_url":"https://api.github.com/repos/mafintosh/tar-fs/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/mafintosh/tar-fs/issues/23/comments","events_url":"https://api.github.com/repos/mafintosh/tar-fs/issues/23/events","html_url":"https://github.com/mafintosh/tar-fs/issues/23","id":108659202,"number":23,"title":"How to know when tar.pack is done?","user":{"login":"Coaxial","id":2927869,"avatar_url":"https://avatars.githubusercontent.com/u/2927869?v=3","gravatar_id":"","url":"https://api.github.com/users/Coaxial","html_url":"https://github.com/Coaxial","followers_url":"https://api.github.com/users/Coaxial/followers","following_url":"https://api.github.com/users/Coaxial/following{/other_user}","gists_url":"https://api.github.com/users/Coaxial/gists{/gist_id}","starred_url":"https://api.github.com/users/Coaxial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coaxial/subscriptions","organizations_url":"https://api.github.com/users/Coaxial/orgs","repos_url":"https://api.github.com/users/Coaxial/repos","events_url":"https://api.github.com/users/Coaxial/events{/privacy}","received_events_url":"https://api.github.com/users/Coaxial/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T13:35:23Z","updated_at":"2015-09-28T16:44:09Z","closed_at":null,"body":"I can't seem to find how to know when `tar.pack` is done so I can call the callback.\r\n\r\nI have\r\n```javascript\r\nfunction tarMyDir(done) {\r\n  tar.pack('my-dir')\r\n    .pipe(fs.createWriteStream('my-file.tar'))\r\n    .on('error', done)\r\n    .on('end', done);\r\n}\r\n```\r\n\r\nBut the `done` callback is never ever called. If I listen for `finish` instead of `end`, it makes no difference. What am I missing?"},"comment":{"url":"https://api.github.com/repos/mafintosh/tar-fs/issues/comments/143800414","html_url":"https://github.com/mafintosh/tar-fs/issues/23#issuecomment-143800414","issue_url":"https://api.github.com/repos/mafintosh/tar-fs/issues/23","id":143800414,"user":{"login":"mafintosh","id":376661,"avatar_url":"https://avatars.githubusercontent.com/u/376661?v=3","gravatar_id":"","url":"https://api.github.com/users/mafintosh","html_url":"https://github.com/mafintosh","followers_url":"https://api.github.com/users/mafintosh/followers","following_url":"https://api.github.com/users/mafintosh/following{/other_user}","gists_url":"https://api.github.com/users/mafintosh/gists{/gist_id}","starred_url":"https://api.github.com/users/mafintosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafintosh/subscriptions","organizations_url":"https://api.github.com/users/mafintosh/orgs","repos_url":"https://api.github.com/users/mafintosh/repos","events_url":"https://api.github.com/users/mafintosh/events{/privacy}","received_events_url":"https://api.github.com/users/mafintosh/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T16:44:09Z","updated_at":"2015-09-28T16:44:09Z","body":"it should be finish instead of end which fires the cb if i run your example. anything special about that directory?"}}