{"action":"created","issue":{"url":"https://api.github.com/repos/hanwen/go-fuse/issues/113","repository_url":"https://api.github.com/repos/hanwen/go-fuse","labels_url":"https://api.github.com/repos/hanwen/go-fuse/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/hanwen/go-fuse/issues/113/comments","events_url":"https://api.github.com/repos/hanwen/go-fuse/issues/113/events","html_url":"https://github.com/hanwen/go-fuse/issues/113","id":167608479,"number":113,"title":"[Request] New example for \"Create\" function","user":{"login":"sarpk","id":4318934,"avatar_url":"https://avatars.githubusercontent.com/u/4318934?v=3","gravatar_id":"","url":"https://api.github.com/users/sarpk","html_url":"https://github.com/sarpk","followers_url":"https://api.github.com/users/sarpk/followers","following_url":"https://api.github.com/users/sarpk/following{/other_user}","gists_url":"https://api.github.com/users/sarpk/gists{/gist_id}","starred_url":"https://api.github.com/users/sarpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarpk/subscriptions","organizations_url":"https://api.github.com/users/sarpk/orgs","repos_url":"https://api.github.com/users/sarpk/repos","events_url":"https://api.github.com/users/sarpk/events{/privacy}","received_events_url":"https://api.github.com/users/sarpk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T13:34:59Z","updated_at":"2016-08-10T07:12:11Z","closed_at":null,"body":"Hello,\r\nIn the `FileSytem` interface there is a function called `Create(name string, flags uint32, mode uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)` however this function does not have any example in regards to how to use it. Is it possible for someone to add a simple example (such as creating a file)? I have tried the below in hello example:\r\n```\r\nfunc (me *HelloFs) Create(name string, flags uint32, mode uint32, context *fuse.Context) (file nodefs.File, code fuse.Status) {\r\n\treturn nodefs.NewDataFile([]byte(name)), fuse.OK\r\n}\r\n```\r\nIt just freezes when I try to create a file, so I am guessing it's something very different..."},"comment":{"url":"https://api.github.com/repos/hanwen/go-fuse/issues/comments/238784369","html_url":"https://github.com/hanwen/go-fuse/issues/113#issuecomment-238784369","issue_url":"https://api.github.com/repos/hanwen/go-fuse/issues/113","id":238784369,"user":{"login":"ahl","id":677483,"avatar_url":"https://avatars.githubusercontent.com/u/677483?v=3","gravatar_id":"","url":"https://api.github.com/users/ahl","html_url":"https://github.com/ahl","followers_url":"https://api.github.com/users/ahl/followers","following_url":"https://api.github.com/users/ahl/following{/other_user}","gists_url":"https://api.github.com/users/ahl/gists{/gist_id}","starred_url":"https://api.github.com/users/ahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahl/subscriptions","organizations_url":"https://api.github.com/users/ahl/orgs","repos_url":"https://api.github.com/users/ahl/repos","events_url":"https://api.github.com/users/ahl/events{/privacy}","received_events_url":"https://api.github.com/users/ahl/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T07:12:11Z","updated_at":"2016-08-10T07:12:11Z","body":"You definitely don't want to call `Create()`. Take a look at these two files: example/memfs/main.go and fuse/nodefs/memnode.go.\r\n\r\nYou might also look here:\r\nhttps://github.com/attic-labs/noms/blob/master/samples/go/nomsfs/nomsfs.go#L282"}}
{"actor":{"display_login":"ahl"}}