{"action":"created","issue":{"url":"https://api.github.com/repos/raulfraile/distill/issues/22","labels_url":"https://api.github.com/repos/raulfraile/distill/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/raulfraile/distill/issues/22/comments","events_url":"https://api.github.com/repos/raulfraile/distill/issues/22/events","html_url":"https://github.com/raulfraile/distill/issues/22","id":78867467,"number":22,"title":"extractWithoutRootDirectory() fails if destination is .","user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars.githubusercontent.com/u/1957048?v=3","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-21T07:13:57Z","updated_at":"2015-05-21T09:01:44Z","closed_at":null,"body":"If you pass `.` (the current working directory) as the destination to the `Distill::extractWithoutRootDirectory()` method, extracting the archive fails with a message like this:\r\n\r\n```\r\nrmdir: failed to remove ‘.’: Invalid argument\r\n```\r\n\r\nThe reason for this is, for example, explained [here](http://superuser.com/questions/708804/removing-while-standing-on-it?answertab=active#tab-top)."},"comment":{"url":"https://api.github.com/repos/raulfraile/distill/issues/comments/104187239","html_url":"https://github.com/raulfraile/distill/issues/22#issuecomment-104187239","issue_url":"https://api.github.com/repos/raulfraile/distill/issues/22","id":104187239,"user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars.githubusercontent.com/u/1957048?v=3","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T09:01:44Z","updated_at":"2015-05-21T09:01:44Z","body":"@raulfraile I can confirm that this fixes the root issue."}}