{"action":"created","issue":{"url":"https://api.github.com/repos/jbenet/go-ipfs/issues/696","labels_url":"https://api.github.com/repos/jbenet/go-ipfs/issues/696/labels{/name}","comments_url":"https://api.github.com/repos/jbenet/go-ipfs/issues/696/comments","events_url":"https://api.github.com/repos/jbenet/go-ipfs/issues/696/events","html_url":"https://github.com/jbenet/go-ipfs/issues/696","id":55985361,"number":696,"title":"Add/Cat interface","user":{"login":"jbenet","id":138401,"avatar_url":"https://avatars.githubusercontent.com/u/138401?v=3","gravatar_id":"","url":"https://api.github.com/users/jbenet","html_url":"https://github.com/jbenet","followers_url":"https://api.github.com/users/jbenet/followers","following_url":"https://api.github.com/users/jbenet/following{/other_user}","gists_url":"https://api.github.com/users/jbenet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbenet/subscriptions","organizations_url":"https://api.github.com/users/jbenet/orgs","repos_url":"https://api.github.com/users/jbenet/repos","events_url":"https://api.github.com/users/jbenet/events{/privacy}","received_events_url":"https://api.github.com/users/jbenet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-30T02:00:31Z","updated_at":"2015-01-30T15:10:27Z","closed_at":null,"body":"In #664 `coreunix.Cat` now takes a path. It was nice when `Cat` and `Add` were symmetric. Maybe make `Add` return a path is the right thing to do? cc @whyrusleeping  @briantigerchow "},"comment":{"url":"https://api.github.com/repos/jbenet/go-ipfs/issues/comments/72215120","html_url":"https://github.com/jbenet/go-ipfs/issues/696#issuecomment-72215120","issue_url":"https://api.github.com/repos/jbenet/go-ipfs/issues/696","id":72215120,"user":{"login":"briantigerchow","id":734339,"avatar_url":"https://avatars.githubusercontent.com/u/734339?v=3","gravatar_id":"","url":"https://api.github.com/users/briantigerchow","html_url":"https://github.com/briantigerchow","followers_url":"https://api.github.com/users/briantigerchow/followers","following_url":"https://api.github.com/users/briantigerchow/following{/other_user}","gists_url":"https://api.github.com/users/briantigerchow/gists{/gist_id}","starred_url":"https://api.github.com/users/briantigerchow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briantigerchow/subscriptions","organizations_url":"https://api.github.com/users/briantigerchow/orgs","repos_url":"https://api.github.com/users/briantigerchow/repos","events_url":"https://api.github.com/users/briantigerchow/events{/privacy}","received_events_url":"https://api.github.com/users/briantigerchow/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T15:10:27Z","updated_at":"2015-01-30T15:10:27Z","body":"Got bit by the conversion.\r\n\r\n:bug: :beetle: \r\n```Go\r\n175             if _, err := coreunix.Cat(n, path.Path(k)); err != nil {\r\n```\r\n\r\nreveals this in debug mode:\r\n```\r\n07:08:17.328 DEBUG       path: Resolve: ' �x{��+YǄP�= �36\r\n                                                         C�,w(���5a resolver.go:24\r\n07:08:17.328 DEBUG       path: given path element is not a base58 string.\r\n resolver.go:39\r\n```\r\n\r\nWith the new signature, users must perform multiple conversions to satisfy the function. The UX has just taken steps backward.\r\n\r\n```Go\r\n175             if _, err := coreunix.Cat(n, path.Path(k.String())); err != nil {\r\n```"}}