{"action":"created","issue":{"url":"https://api.github.com/repos/paulmillr/chokidar/issues/337","repository_url":"https://api.github.com/repos/paulmillr/chokidar","labels_url":"https://api.github.com/repos/paulmillr/chokidar/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/paulmillr/chokidar/issues/337/comments","events_url":"https://api.github.com/repos/paulmillr/chokidar/issues/337/events","html_url":"https://github.com/paulmillr/chokidar/issues/337","id":101396006,"number":337,"title":"\"unlinkDir\" not firing","user":{"login":"Dorosty","id":1959678,"avatar_url":"https://avatars.githubusercontent.com/u/1959678?v=3","gravatar_id":"","url":"https://api.github.com/users/Dorosty","html_url":"https://github.com/Dorosty","followers_url":"https://api.github.com/users/Dorosty/followers","following_url":"https://api.github.com/users/Dorosty/following{/other_user}","gists_url":"https://api.github.com/users/Dorosty/gists{/gist_id}","starred_url":"https://api.github.com/users/Dorosty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dorosty/subscriptions","organizations_url":"https://api.github.com/users/Dorosty/orgs","repos_url":"https://api.github.com/users/Dorosty/repos","events_url":"https://api.github.com/users/Dorosty/events{/privacy}","received_events_url":"https://api.github.com/users/Dorosty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paulmillr/chokidar/labels/bug","name":"bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-08-17T10:54:28Z","updated_at":"2016-10-26T03:36:36Z","closed_at":"2015-12-02T18:03:04Z","body":"On Ubuntu 14.04 the following code works when I add, modify or remove a file in the \"src\" directory. However when I remove a directory from it (for example \"src/a\"), \"unlinkDir\" does not fire. Am I doing something wrong?\r\n\r\n``` javascript\r\nvar watcher = chokidar.watch('src/**/*.coffee');\r\nwatcher.on('add', compile);\r\nwatcher.on('change', compile);\r\nwatcher.on('unlink', remove);\r\nvar dirWatcher = chokidar.watch('src/**');\r\ndirWatcher.on('unlinkDir', removeDir);\r\n```"},"comment":{"url":"https://api.github.com/repos/paulmillr/chokidar/issues/comments/256241395","html_url":"https://github.com/paulmillr/chokidar/issues/337#issuecomment-256241395","issue_url":"https://api.github.com/repos/paulmillr/chokidar/issues/337","id":256241395,"user":{"login":"danbucholtz","id":4680488,"avatar_url":"https://avatars.githubusercontent.com/u/4680488?v=3","gravatar_id":"","url":"https://api.github.com/users/danbucholtz","html_url":"https://github.com/danbucholtz","followers_url":"https://api.github.com/users/danbucholtz/followers","following_url":"https://api.github.com/users/danbucholtz/following{/other_user}","gists_url":"https://api.github.com/users/danbucholtz/gists{/gist_id}","starred_url":"https://api.github.com/users/danbucholtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbucholtz/subscriptions","organizations_url":"https://api.github.com/users/danbucholtz/orgs","repos_url":"https://api.github.com/users/danbucholtz/repos","events_url":"https://api.github.com/users/danbucholtz/events{/privacy}","received_events_url":"https://api.github.com/users/danbucholtz/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T03:36:36Z","updated_at":"2016-10-26T03:36:36Z","body":"@es128,\r\n\r\nI have a similar situation as @Dorosty but it is ever so slightly different.\r\n\r\nI have a watch on some files of a given extension, in my case, `.ts` from a glob (`**/*.ts`). If I am listening for `all` events, and I delete a directory containing the a `.ts` file that meets the glob criteria, I do not receive an event.\r\n\r\nFor example,\r\n\r\nI'm watching all `.ts` files in `src`. If I delete `src/someDir` which contains `src/someDir/someFile.ts`, I do not receive an `unlink` event for `someFile`.\r\n\r\nThis does not seem like an expected behavior to me. What do you think?\r\n\r\nThanks,\r\nDan"}}
{"actor":{"display_login":"danbucholtz"}}