{"action":"closed","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/5169","repository_url":"https://api.github.com/repos/ipfs/go-ipfs","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/5169/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/5169/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/5169/events","html_url":"https://github.com/ipfs/go-ipfs/issues/5169","id":336880323,"node_id":"MDU6SXNzdWUzMzY4ODAzMjM=","number":5169,"title":"Direct pins","user":{"login":"ambertch","id":156263,"node_id":"MDQ6VXNlcjE1NjI2Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/156263?v=4","gravatar_id":"","url":"https://api.github.com/users/ambertch","html_url":"https://github.com/ambertch","followers_url":"https://api.github.com/users/ambertch/followers","following_url":"https://api.github.com/users/ambertch/following{/other_user}","gists_url":"https://api.github.com/users/ambertch/gists{/gist_id}","starred_url":"https://api.github.com/users/ambertch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambertch/subscriptions","organizations_url":"https://api.github.com/users/ambertch/orgs","repos_url":"https://api.github.com/users/ambertch/repos","events_url":"https://api.github.com/users/ambertch/events{/privacy}","received_events_url":"https://api.github.com/users/ambertch/received_events","type":"User","site_admin":false},"labels":[{"id":109732115,"node_id":"MDU6TGFiZWwxMDk3MzIxMTU=","url":"https://api.github.com/repos/ipfs/go-ipfs/labels/question","name":"question","color":"bfe5bf","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-29T06:36:37Z","updated_at":"2018-06-30T19:15:12Z","closed_at":"2018-06-30T19:15:12Z","author_association":"NONE","body":"I'm writing a utility to pin content as direct pins, so as to know that only that content is being pinned.\r\n\r\nWhen I add pins, then view them via a `pin ls`, all pins are either recursive or indirect.\r\n\r\nIt seems like PinWithMode() is the only method through which direct pins can be made, and this is not exposed through any client APIs https://github.com/ipfs/go-ipfs/blob/master/pin/pin.go#L603\r\n\r\nIs there a client accessible way to do direct pinning, or should I just validate that recursive pins are only made on files?\r\n\r\nThanks!"}}
{"actor":{"display_login":"Stebalien"}}