{"action":"created","comment":{"url":"https://api.github.com/repos/conda/conda-env/pulls/comments/32571459","id":32571459,"diff_hunk":"@@ -81,6 +88,8 @@ def execute(args, parser):\n         common.error_and_exit(str(e), json=args.json)\n \n     prefix = common.get_prefix(args, search=False)\n+    if args.force and prefix != root_env_name and os.path.exists(prefix):\n+        shutil.rmtree(prefix)","path":"conda_env/cli/main_create.py","position":32,"original_position":32,"commit_id":"8a33f03e90f48306f42c888225dba9d619dd4d78","original_commit_id":"8a33f03e90f48306f42c888225dba9d619dd4d78","user":{"login":"malev","id":55977,"avatar_url":"https://avatars.githubusercontent.com/u/55977?v=3","gravatar_id":"","url":"https://api.github.com/users/malev","html_url":"https://github.com/malev","followers_url":"https://api.github.com/users/malev/followers","following_url":"https://api.github.com/users/malev/following{/other_user}","gists_url":"https://api.github.com/users/malev/gists{/gist_id}","starred_url":"https://api.github.com/users/malev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malev/subscriptions","organizations_url":"https://api.github.com/users/malev/orgs","repos_url":"https://api.github.com/users/malev/repos","events_url":"https://api.github.com/users/malev/events{/privacy}","received_events_url":"https://api.github.com/users/malev/received_events","type":"User","site_admin":false},"body":"Why don't you use `rm_rf` as in `conda env remove` https://github.com/conda/conda-env/blob/develop/conda_env/cli/main_remove.py#L105 ? Think this would be a more consistent approach","created_at":"2015-06-16T21:13:36Z","updated_at":"2015-06-16T21:13:36Z","html_url":"https://github.com/conda/conda-env/pull/102#discussion_r32571459","pull_request_url":"https://api.github.com/repos/conda/conda-env/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/conda/conda-env/pulls/comments/32571459"},"html":{"href":"https://github.com/conda/conda-env/pull/102#discussion_r32571459"},"pull_request":{"href":"https://api.github.com/repos/conda/conda-env/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/conda/conda-env/pulls/102","id":37812866,"html_url":"https://github.com/conda/conda-env/pull/102","diff_url":"https://github.com/conda/conda-env/pull/102.diff","patch_url":"https://github.com/conda/conda-env/pull/102.patch","issue_url":"https://api.github.com/repos/conda/conda-env/issues/102","number":102,"state":"open","locked":false,"title":"Add --force option to conda env create","user":{"login":"campos-ddc","id":893630,"avatar_url":"https://avatars.githubusercontent.com/u/893630?v=3","gravatar_id":"","url":"https://api.github.com/users/campos-ddc","html_url":"https://github.com/campos-ddc","followers_url":"https://api.github.com/users/campos-ddc/followers","following_url":"https://api.github.com/users/campos-ddc/following{/other_user}","gists_url":"https://api.github.com/users/campos-ddc/gists{/gist_id}","starred_url":"https://api.github.com/users/campos-ddc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campos-ddc/subscriptions","organizations_url":"https://api.github.com/users/campos-ddc/orgs","repos_url":"https://api.github.com/users/campos-ddc/repos","events_url":"https://api.github.com/users/campos-ddc/events{/privacy}","received_events_url":"https://api.github.com/users/campos-ddc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-16T16:14:15Z","updated_at":"2015-06-16T21:13:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6215a9f080eb42798137a72d20d4bfedcc7a8d62","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/conda/conda-env/pulls/102/commits","review_comments_url":"https://api.github.com/repos/conda/conda-env/pulls/102/comments","review_comment_url":"https://api.github.com/repos/conda/conda-env/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conda/conda-env/issues/102/comments","statuses_url":"https://api.github.com/repos/conda/conda-env/statuses/8a33f03e90f48306f42c888225dba9d619dd4d78","head":{"label":"ESSS:feature/force-create","ref":"feature/force-create","sha":"8a33f03e90f48306f42c888225dba9d619dd4d78","user":{"login":"ESSS","id":1074769,"avatar_url":"https://avatars.githubusercontent.com/u/1074769?v=3","gravatar_id":"","url":"https://api.github.com/users/ESSS","html_url":"https://github.com/ESSS","followers_url":"https://api.github.com/users/ESSS/followers","following_url":"https://api.github.com/users/ESSS/following{/other_user}","gists_url":"https://api.github.com/users/ESSS/gists{/gist_id}","starred_url":"https://api.github.com/users/ESSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESSS/subscriptions","organizations_url":"https://api.github.com/users/ESSS/orgs","repos_url":"https://api.github.com/users/ESSS/repos","events_url":"https://api.github.com/users/ESSS/events{/privacy}","received_events_url":"https://api.github.com/users/ESSS/received_events","type":"Organization","site_admin":false},"repo":{"id":36378931,"name":"conda-env","full_name":"ESSS/conda-env","owner":{"login":"ESSS","id":1074769,"avatar_url":"https://avatars.githubusercontent.com/u/1074769?v=3","gravatar_id":"","url":"https://api.github.com/users/ESSS","html_url":"https://github.com/ESSS","followers_url":"https://api.github.com/users/ESSS/followers","following_url":"https://api.github.com/users/ESSS/following{/other_user}","gists_url":"https://api.github.com/users/ESSS/gists{/gist_id}","starred_url":"https://api.github.com/users/ESSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESSS/subscriptions","organizations_url":"https://api.github.com/users/ESSS/orgs","repos_url":"https://api.github.com/users/ESSS/repos","events_url":"https://api.github.com/users/ESSS/events{/privacy}","received_events_url":"https://api.github.com/users/ESSS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ESSS/conda-env","description":"Provides a unified interface to dealing with Conda environments.","fork":true,"url":"https://api.github.com/repos/ESSS/conda-env","forks_url":"https://api.github.com/repos/ESSS/conda-env/forks","keys_url":"https://api.github.com/repos/ESSS/conda-env/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ESSS/conda-env/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ESSS/conda-env/teams","hooks_url":"https://api.github.com/repos/ESSS/conda-env/hooks","issue_events_url":"https://api.github.com/repos/ESSS/conda-env/issues/events{/number}","events_url":"https://api.github.com/repos/ESSS/conda-env/events","assignees_url":"https://api.github.com/repos/ESSS/conda-env/assignees{/user}","branches_url":"https://api.github.com/repos/ESSS/conda-env/branches{/branch}","tags_url":"https://api.github.com/repos/ESSS/conda-env/tags","blobs_url":"https://api.github.com/repos/ESSS/conda-env/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ESSS/conda-env/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ESSS/conda-env/git/refs{/sha}","trees_url":"https://api.github.com/repos/ESSS/conda-env/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ESSS/conda-env/statuses/{sha}","languages_url":"https://api.github.com/repos/ESSS/conda-env/languages","stargazers_url":"https://api.github.com/repos/ESSS/conda-env/stargazers","contributors_url":"https://api.github.com/repos/ESSS/conda-env/contributors","subscribers_url":"https://api.github.com/repos/ESSS/conda-env/subscribers","subscription_url":"https://api.github.com/repos/ESSS/conda-env/subscription","commits_url":"https://api.github.com/repos/ESSS/conda-env/commits{/sha}","git_commits_url":"https://api.github.com/repos/ESSS/conda-env/git/commits{/sha}","comments_url":"https://api.github.com/repos/ESSS/conda-env/comments{/number}","issue_comment_url":"https://api.github.com/repos/ESSS/conda-env/issues/comments{/number}","contents_url":"https://api.github.com/repos/ESSS/conda-env/contents/{+path}","compare_url":"https://api.github.com/repos/ESSS/conda-env/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ESSS/conda-env/merges","archive_url":"https://api.github.com/repos/ESSS/conda-env/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ESSS/conda-env/downloads","issues_url":"https://api.github.com/repos/ESSS/conda-env/issues{/number}","pulls_url":"https://api.github.com/repos/ESSS/conda-env/pulls{/number}","milestones_url":"https://api.github.com/repos/ESSS/conda-env/milestones{/number}","notifications_url":"https://api.github.com/repos/ESSS/conda-env/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ESSS/conda-env/labels{/name}","releases_url":"https://api.github.com/repos/ESSS/conda-env/releases{/id}","created_at":"2015-05-27T16:07:09Z","updated_at":"2015-05-27T16:07:09Z","pushed_at":"2015-06-16T16:58:22Z","git_url":"git://github.com/ESSS/conda-env.git","ssh_url":"git@github.com:ESSS/conda-env.git","clone_url":"https://github.com/ESSS/conda-env.git","svn_url":"https://github.com/ESSS/conda-env","homepage":"","size":347,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"conda:develop","ref":"develop","sha":"6adea918a4e06d60083e8639e4b9630ff9a0b94e","user":{"login":"conda","id":6392739,"avatar_url":"https://avatars.githubusercontent.com/u/6392739?v=3","gravatar_id":"","url":"https://api.github.com/users/conda","html_url":"https://github.com/conda","followers_url":"https://api.github.com/users/conda/followers","following_url":"https://api.github.com/users/conda/following{/other_user}","gists_url":"https://api.github.com/users/conda/gists{/gist_id}","starred_url":"https://api.github.com/users/conda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conda/subscriptions","organizations_url":"https://api.github.com/users/conda/orgs","repos_url":"https://api.github.com/users/conda/repos","events_url":"https://api.github.com/users/conda/events{/privacy}","received_events_url":"https://api.github.com/users/conda/received_events","type":"Organization","site_admin":false},"repo":{"id":18802640,"name":"conda-env","full_name":"conda/conda-env","owner":{"login":"conda","id":6392739,"avatar_url":"https://avatars.githubusercontent.com/u/6392739?v=3","gravatar_id":"","url":"https://api.github.com/users/conda","html_url":"https://github.com/conda","followers_url":"https://api.github.com/users/conda/followers","following_url":"https://api.github.com/users/conda/following{/other_user}","gists_url":"https://api.github.com/users/conda/gists{/gist_id}","starred_url":"https://api.github.com/users/conda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conda/subscriptions","organizations_url":"https://api.github.com/users/conda/orgs","repos_url":"https://api.github.com/users/conda/repos","events_url":"https://api.github.com/users/conda/events{/privacy}","received_events_url":"https://api.github.com/users/conda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/conda/conda-env","description":"Provides a unified interface to dealing with Conda environments.","fork":false,"url":"https://api.github.com/repos/conda/conda-env","forks_url":"https://api.github.com/repos/conda/conda-env/forks","keys_url":"https://api.github.com/repos/conda/conda-env/keys{/key_id}","collaborators_url":"https://api.github.com/repos/conda/conda-env/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/conda/conda-env/teams","hooks_url":"https://api.github.com/repos/conda/conda-env/hooks","issue_events_url":"https://api.github.com/repos/conda/conda-env/issues/events{/number}","events_url":"https://api.github.com/repos/conda/conda-env/events","assignees_url":"https://api.github.com/repos/conda/conda-env/assignees{/user}","branches_url":"https://api.github.com/repos/conda/conda-env/branches{/branch}","tags_url":"https://api.github.com/repos/conda/conda-env/tags","blobs_url":"https://api.github.com/repos/conda/conda-env/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/conda/conda-env/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/conda/conda-env/git/refs{/sha}","trees_url":"https://api.github.com/repos/conda/conda-env/git/trees{/sha}","statuses_url":"https://api.github.com/repos/conda/conda-env/statuses/{sha}","languages_url":"https://api.github.com/repos/conda/conda-env/languages","stargazers_url":"https://api.github.com/repos/conda/conda-env/stargazers","contributors_url":"https://api.github.com/repos/conda/conda-env/contributors","subscribers_url":"https://api.github.com/repos/conda/conda-env/subscribers","subscription_url":"https://api.github.com/repos/conda/conda-env/subscription","commits_url":"https://api.github.com/repos/conda/conda-env/commits{/sha}","git_commits_url":"https://api.github.com/repos/conda/conda-env/git/commits{/sha}","comments_url":"https://api.github.com/repos/conda/conda-env/comments{/number}","issue_comment_url":"https://api.github.com/repos/conda/conda-env/issues/comments{/number}","contents_url":"https://api.github.com/repos/conda/conda-env/contents/{+path}","compare_url":"https://api.github.com/repos/conda/conda-env/compare/{base}...{head}","merges_url":"https://api.github.com/repos/conda/conda-env/merges","archive_url":"https://api.github.com/repos/conda/conda-env/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/conda/conda-env/downloads","issues_url":"https://api.github.com/repos/conda/conda-env/issues{/number}","pulls_url":"https://api.github.com/repos/conda/conda-env/pulls{/number}","milestones_url":"https://api.github.com/repos/conda/conda-env/milestones{/number}","notifications_url":"https://api.github.com/repos/conda/conda-env/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/conda/conda-env/labels{/name}","releases_url":"https://api.github.com/repos/conda/conda-env/releases{/id}","created_at":"2014-04-15T14:16:17Z","updated_at":"2015-06-05T17:03:17Z","pushed_at":"2015-06-16T18:13:49Z","git_url":"git://github.com/conda/conda-env.git","ssh_url":"git@github.com:conda/conda-env.git","clone_url":"https://github.com/conda/conda-env.git","svn_url":"https://github.com/conda/conda-env","homepage":"","size":1138,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":50,"forks":13,"open_issues":50,"watchers":22,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/conda/conda-env/pulls/102"},"html":{"href":"https://github.com/conda/conda-env/pull/102"},"issue":{"href":"https://api.github.com/repos/conda/conda-env/issues/102"},"comments":{"href":"https://api.github.com/repos/conda/conda-env/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/conda/conda-env/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/conda/conda-env/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conda/conda-env/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/conda/conda-env/statuses/8a33f03e90f48306f42c888225dba9d619dd4d78"}}}}