{"action":"closed","issue":{"url":"https://api.github.com/repos/paulmillr/chokidar/issues/256","labels_url":"https://api.github.com/repos/paulmillr/chokidar/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/paulmillr/chokidar/issues/256/comments","events_url":"https://api.github.com/repos/paulmillr/chokidar/issues/256/events","html_url":"https://github.com/paulmillr/chokidar/issues/256","id":60825903,"number":256,"title":"Deleting directory fire addDir events instead of unlinkDir on windows with depth=0","user":{"login":"felicienfrancois","id":988144,"avatar_url":"https://avatars.githubusercontent.com/u/988144?v=3","gravatar_id":"","url":"https://api.github.com/users/felicienfrancois","html_url":"https://github.com/felicienfrancois","followers_url":"https://api.github.com/users/felicienfrancois/followers","following_url":"https://api.github.com/users/felicienfrancois/following{/other_user}","gists_url":"https://api.github.com/users/felicienfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/felicienfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicienfrancois/subscriptions","organizations_url":"https://api.github.com/users/felicienfrancois/orgs","repos_url":"https://api.github.com/users/felicienfrancois/repos","events_url":"https://api.github.com/users/felicienfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/felicienfrancois/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-12T14:22:11Z","updated_at":"2015-03-25T12:57:36Z","closed_at":"2015-03-25T12:57:36Z","body":"On windows with depth=0, the `unlinkDir` event is not fired.\r\nInstead one `addDir` event per remaining dir is fired.\r\n\r\n```\r\n> watched_dir\r\n   > dir1\r\n   > dir2  <- deleting this one\r\n   > dir3\r\n   > dir4\r\n```\r\n\r\nEvents with depth=1:\r\n```\r\nunlinkDir dir2\r\n```\r\n\r\nEvents with depth=0:\r\n```\r\naddDir dir1\r\naddDir dir3\r\naddDir dir4\r\n```\r\n\r\nTested on Windows 8.1 with IO.JS 1.4.3\r\n\r\n"}}