{"action":"opened","issue":{"url":"https://api.github.com/repos/ipfs/interface-ipfs-core/issues/301","repository_url":"https://api.github.com/repos/ipfs/interface-ipfs-core","labels_url":"https://api.github.com/repos/ipfs/interface-ipfs-core/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/interface-ipfs-core/issues/301/comments","events_url":"https://api.github.com/repos/ipfs/interface-ipfs-core/issues/301/events","html_url":"https://github.com/ipfs/interface-ipfs-core/issues/301","id":331821445,"node_id":"MDU6SXNzdWUzMzE4MjE0NDU=","number":301,"title":"ipfs.files.write with 'create' set to true does not create file and returns error.","user":{"login":"Kyrrui","id":8539426,"node_id":"MDQ6VXNlcjg1Mzk0MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/8539426?v=4","gravatar_id":"","url":"https://api.github.com/users/Kyrrui","html_url":"https://github.com/Kyrrui","followers_url":"https://api.github.com/users/Kyrrui/followers","following_url":"https://api.github.com/users/Kyrrui/following{/other_user}","gists_url":"https://api.github.com/users/Kyrrui/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyrrui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyrrui/subscriptions","organizations_url":"https://api.github.com/users/Kyrrui/orgs","repos_url":"https://api.github.com/users/Kyrrui/repos","events_url":"https://api.github.com/users/Kyrrui/events{/privacy}","received_events_url":"https://api.github.com/users/Kyrrui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-13T02:44:56Z","updated_at":"2018-06-13T02:44:56Z","closed_at":null,"author_association":"NONE","body":"Code I'm calling:  \r\n```\r\nasync createFile() {\r\n    ipfs.files.write('/hello-world', Buffer.from('Hello, world!'), {create:true}, (err) => {\r\n      console.log(err)\r\n    })\r\n  }\r\n```\r\nError I'm receiving:\r\nError: /hello-world was not a file\r\n    at parseError (send-request.js:16)\r\n    at ./node_modules/stream-http/lib/request.js.module.exports.<anonymous> (send-request.js:39)\r\n    at ./node_modules/stream-http/lib/request.js.module.exports../node_modules/events/events.js.EventEmitter.emit (events.js:81)\r\n    at ./node_modules/stream-http/lib/request.js.module.exports../node_modules/stream-http/lib/request.js.ClientRequest._connect (request.js:268)\r\n    at request.js:159 \r\n\r\n"}}
{"actor":{"display_login":"Kyrrui"}}