{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6549","repository_url":"https://api.github.com/repos/ember-cli/ember-cli","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6549/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6549/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6549/events","html_url":"https://github.com/ember-cli/ember-cli/pull/6549","id":194713425,"number":6549,"title":"Allow using empty directories.","user":{"login":"nathanhammond","id":20542,"avatar_url":"https://avatars.githubusercontent.com/u/20542?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanhammond","html_url":"https://github.com/nathanhammond","followers_url":"https://api.github.com/users/nathanhammond/followers","following_url":"https://api.github.com/users/nathanhammond/following{/other_user}","gists_url":"https://api.github.com/users/nathanhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanhammond/subscriptions","organizations_url":"https://api.github.com/users/nathanhammond/orgs","repos_url":"https://api.github.com/users/nathanhammond/repos","events_url":"https://api.github.com/users/nathanhammond/events{/privacy}","received_events_url":"https://api.github.com/users/nathanhammond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-09T22:33:14Z","updated_at":"2016-12-09T23:45:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/6549","html_url":"https://github.com/ember-cli/ember-cli/pull/6549","diff_url":"https://github.com/ember-cli/ember-cli/pull/6549.diff","patch_url":"https://github.com/ember-cli/ember-cli/pull/6549.patch"},"body":"The usecase of `--directory` inside of Ember CLI allows you to specify where you wish to place the output from the `ember new` and `ember addon` commands. It's likely in those scenarios that the directory you're trying to populate already exists. Our goal was to make sure we played nicely with the existing assets. An empty directory meets that bar for safety and improves the ergonomics of the `--directory` command, also making it more suitable for testing."},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/266154233","html_url":"https://github.com/ember-cli/ember-cli/pull/6549#issuecomment-266154233","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6549","id":266154233,"user":{"login":"nathanhammond","id":20542,"avatar_url":"https://avatars.githubusercontent.com/u/20542?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanhammond","html_url":"https://github.com/nathanhammond","followers_url":"https://api.github.com/users/nathanhammond/followers","following_url":"https://api.github.com/users/nathanhammond/following{/other_user}","gists_url":"https://api.github.com/users/nathanhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanhammond/subscriptions","organizations_url":"https://api.github.com/users/nathanhammond/orgs","repos_url":"https://api.github.com/users/nathanhammond/repos","events_url":"https://api.github.com/users/nathanhammond/events{/privacy}","received_events_url":"https://api.github.com/users/nathanhammond/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T23:45:02Z","updated_at":"2016-12-09T23:45:02Z","body":"This is a small, safe, change. It's tested. The scenario where we encounter the most cost should be the least common outcome of all possibilities. \r\n\r\nHere's [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html). Node.js doesn't actually implement [opendir(3)](http://man7.org/linux/man-pages/man3/opendir.3.html) which we could use to check the directory stream directly, so I'm shipping it for reasons of ergonomics.\r\n\r\n@homu r+"}}
{"actor":{"display_login":"nathanhammond"}}