{"action":"created","issue":{"url":"https://api.github.com/repos/atom/tree-view/issues/656","repository_url":"https://api.github.com/repos/atom/tree-view","labels_url":"https://api.github.com/repos/atom/tree-view/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/atom/tree-view/issues/656/comments","events_url":"https://api.github.com/repos/atom/tree-view/issues/656/events","html_url":"https://github.com/atom/tree-view/issues/656","id":117882402,"number":656,"title":"Copying and pasting directories inside themselves has undesirable results","user":{"login":"Mr-Wallet","id":799000,"avatar_url":"https://avatars.githubusercontent.com/u/799000?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Wallet","html_url":"https://github.com/Mr-Wallet","followers_url":"https://api.github.com/users/Mr-Wallet/followers","following_url":"https://api.github.com/users/Mr-Wallet/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Wallet/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Wallet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Wallet/subscriptions","organizations_url":"https://api.github.com/users/Mr-Wallet/orgs","repos_url":"https://api.github.com/users/Mr-Wallet/repos","events_url":"https://api.github.com/users/Mr-Wallet/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Wallet/received_events","type":"User","site_admin":false},"labels":[{"id":51918116,"url":"https://api.github.com/repos/atom/tree-view/labels/bug","name":"bug","color":"f7c6c7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-11-19T18:56:50Z","updated_at":"2016-12-23T23:44:58Z","closed_at":null,"body":"Version 1.2.2, Windows 8.\n- Select a folder `A` with file `x`.\n- Perform a copy, then perform 3 pastes.\n- The following structure results:\n\n```\nA\n| A\n| | x\n|\n| A0\n| | A\n| | | x\n| | x\n|\n| A1\n| | A\n| | | x\n| |\n| | A0\n| | | A\n| | | | x\n| | | x\n| | x\n| x\n```\n\nThe paste operation is looking at the source path _at the moment of pasting,_ which is unintuitive. I would expect it to store a list of all file paths _at the moment of copying._\n\nI'm not familiar with the exact effects of #631 but in 1.2.2, the effects of selecting the pasted item can be disastrous:\n- Select a folder `A` with file `x`.\n- Perform a copy, then perform a paste.\n- Select the folder `A/A`.\n- Perform a paste.\n- The following structure results:\n\n```\nA\n| A\n| | A\n| | | A\n| | | | A\n| | | | | A\n| | | | | | A\n...\n| | x\n| x\n```\n\nAtom locks up and continues making empty `A` directories until the application is forcibly closed.\nWhen reproducing this issue, it's very easy to end up with file paths so long that Windows is unable to delete them. I found [rimraf](http://superuser.com/questions/78434/how-to-delete-directories-with-path-names-too-long-for-normal-delete) very helpful in cleaning up afterward.\n"},"comment":{"url":"https://api.github.com/repos/atom/tree-view/issues/comments/269057496","html_url":"https://github.com/atom/tree-view/issues/656#issuecomment-269057496","issue_url":"https://api.github.com/repos/atom/tree-view/issues/656","id":269057496,"user":{"login":"Ben3eeE","id":1058982,"avatar_url":"https://avatars.githubusercontent.com/u/1058982?v=3","gravatar_id":"","url":"https://api.github.com/users/Ben3eeE","html_url":"https://github.com/Ben3eeE","followers_url":"https://api.github.com/users/Ben3eeE/followers","following_url":"https://api.github.com/users/Ben3eeE/following{/other_user}","gists_url":"https://api.github.com/users/Ben3eeE/gists{/gist_id}","starred_url":"https://api.github.com/users/Ben3eeE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ben3eeE/subscriptions","organizations_url":"https://api.github.com/users/Ben3eeE/orgs","repos_url":"https://api.github.com/users/Ben3eeE/repos","events_url":"https://api.github.com/users/Ben3eeE/events{/privacy}","received_events_url":"https://api.github.com/users/Ben3eeE/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T23:44:58Z","updated_at":"2016-12-23T23:44:58Z","body":"@ungb can you reproduce this and check https://github.com/atom/tree-view/issues/509 also?"}}
{"actor":{"display_login":"Ben3eeE"}}