{"action":"closed","issue":{"url":"https://api.github.com/repos/paulmillr/chokidar/issues/422","labels_url":"https://api.github.com/repos/paulmillr/chokidar/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/paulmillr/chokidar/issues/422/comments","events_url":"https://api.github.com/repos/paulmillr/chokidar/issues/422/events","html_url":"https://github.com/paulmillr/chokidar/issues/422","id":124117718,"number":422,"title":"Windows: Cannot delete watched folder with not-empty subfolder","user":{"login":"MajorBreakfast","id":340142,"avatar_url":"https://avatars.githubusercontent.com/u/340142?v=3","gravatar_id":"","url":"https://api.github.com/users/MajorBreakfast","html_url":"https://github.com/MajorBreakfast","followers_url":"https://api.github.com/users/MajorBreakfast/followers","following_url":"https://api.github.com/users/MajorBreakfast/following{/other_user}","gists_url":"https://api.github.com/users/MajorBreakfast/gists{/gist_id}","starred_url":"https://api.github.com/users/MajorBreakfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MajorBreakfast/subscriptions","organizations_url":"https://api.github.com/users/MajorBreakfast/orgs","repos_url":"https://api.github.com/users/MajorBreakfast/repos","events_url":"https://api.github.com/users/MajorBreakfast/events{/privacy}","received_events_url":"https://api.github.com/users/MajorBreakfast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-28T20:10:37Z","updated_at":"2016-01-04T20:07:12Z","closed_at":"2016-01-04T20:07:12Z","body":"I noticed that I cannot delete a watched folder that has a not-empty subfolder on Windows. Here're two examples:\r\n\r\n1. I create the file `a/b/c.txt`. Chokidar picks up the change just fine. Then, I try to delete `a/`. This curiously doesn't work. Workaround: First delete `a/b/`, then delete `a/`.\r\n2. The same goes for folders: I create `a/b/c/`. Directly deleting `a/` fails. Deleting `a/b/` first, then `a/` works.\r\n\r\nIs this a known issue? Can it be fixed?"}}