{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2272","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2272/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2272/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2272/events","html_url":"https://github.com/ipfs/go-ipfs/issues/2272","id":130163042,"number":2272,"title":"files cp/mv of existing dirs","user":{"login":"diasdavid","id":1211152,"avatar_url":"https://avatars.githubusercontent.com/u/1211152?v=3","gravatar_id":"","url":"https://api.github.com/users/diasdavid","html_url":"https://github.com/diasdavid","followers_url":"https://api.github.com/users/diasdavid/followers","following_url":"https://api.github.com/users/diasdavid/following{/other_user}","gists_url":"https://api.github.com/users/diasdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/diasdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diasdavid/subscriptions","organizations_url":"https://api.github.com/users/diasdavid/orgs","repos_url":"https://api.github.com/users/diasdavid/repos","events_url":"https://api.github.com/users/diasdavid/events{/privacy}","received_events_url":"https://api.github.com/users/diasdavid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/question","name":"question","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-31T18:22:38Z","updated_at":"2016-01-31T23:47:57Z","closed_at":null,"body":"I want to be able to do a `ipfs files cp /ipfs/hash /folder` or `ipfs files mv /ipfs/hash /folder` and it work independently of being a file or a folder. Currently, neither `cp` or `mv` have a `-r`. `cp` is able to copy the MerkleDAG node that represents a directory, but just once, on the second time I have to remove it first, and since it is a directory, it has to be removed with -r."},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/177662062","html_url":"https://github.com/ipfs/go-ipfs/issues/2272#issuecomment-177662062","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2272","id":177662062,"user":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T23:47:57Z","updated_at":"2016-01-31T23:47:57Z","body":"could you elaborate a little? i'm not sure what youre looking for here"}}