{"action":"created","issue":{"url":"https://api.github.com/repos/ApiGen/ApiGen/issues/574","labels_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/574/comments","events_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/574/events","html_url":"https://github.com/ApiGen/ApiGen/issues/574","id":63277926,"number":574,"title":"Setting the project's root (.) as destination deletes everything.","user":{"login":"malkusch","id":1623984,"avatar_url":"https://avatars.githubusercontent.com/u/1623984?v=3","gravatar_id":"","url":"https://api.github.com/users/malkusch","html_url":"https://github.com/malkusch","followers_url":"https://api.github.com/users/malkusch/followers","following_url":"https://api.github.com/users/malkusch/following{/other_user}","gists_url":"https://api.github.com/users/malkusch/gists{/gist_id}","starred_url":"https://api.github.com/users/malkusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malkusch/subscriptions","organizations_url":"https://api.github.com/users/malkusch/orgs","repos_url":"https://api.github.com/users/malkusch/repos","events_url":"https://api.github.com/users/malkusch/events{/privacy}","received_events_url":"https://api.github.com/users/malkusch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T18:21:19Z","updated_at":"2015-03-20T20:32:42Z","closed_at":"2015-03-20T20:32:42Z","body":"Hi\r\nI'm using since quiet a while `.` as destination for [generating my documentation](https://github.com/malkusch/php-mock/tree/gh-pages):\r\n```\r\ndestination: .\r\nsource:\r\n    - vendor/malkusch/php-mock/classes/\r\n```\r\nLast time when I ran `./vendor/bin/apigen generate` successfully was with ApiGen-4.0.0-RC4. Today I used v4.0.1. Well, it deleted everything inside the current working directory including hidden folders like .git.\r\n\r\nI've set up a small test case for you:\r\n1. `git clone --single-branch -b delete-everything https://github.com/malkusch/ApiGen.git`\r\n2. `cd ApiGen`\r\n3. `make`\r\n\r\nInstead of `make` you could also run:\r\n1. `composer update`\r\n2. `./vendor/bin/apigen generate`\r\n\r\nThe result is that everything in the current working directory is deleted. Well, apigen fails because of that as well."},"comment":{"url":"https://api.github.com/repos/ApiGen/ApiGen/issues/comments/84137443","html_url":"https://github.com/ApiGen/ApiGen/issues/574#issuecomment-84137443","issue_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/574","id":84137443,"user":{"login":"malkusch","id":1623984,"avatar_url":"https://avatars.githubusercontent.com/u/1623984?v=3","gravatar_id":"","url":"https://api.github.com/users/malkusch","html_url":"https://github.com/malkusch","followers_url":"https://api.github.com/users/malkusch/followers","following_url":"https://api.github.com/users/malkusch/following{/other_user}","gists_url":"https://api.github.com/users/malkusch/gists{/gist_id}","starred_url":"https://api.github.com/users/malkusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malkusch/subscriptions","organizations_url":"https://api.github.com/users/malkusch/orgs","repos_url":"https://api.github.com/users/malkusch/repos","events_url":"https://api.github.com/users/malkusch/events{/privacy}","received_events_url":"https://api.github.com/users/malkusch/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T20:32:42Z","updated_at":"2015-03-20T20:32:42Z","body":"I closed this as I see now that it was always the intention to delete the content of the source directory. I'll sadly move my API documentation into a separate folder."}}