create files correctly!

This commit is contained in:
Chris Lu
2018-05-19 13:51:44 -07:00
parent 793dd81ca2
commit 7ca5052942
2 changed files with 25 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ type Dir struct {
wfs *WFS
}
var _ = fs.Node(&Dir{})
var _ = fs.HandleReadDirAller(&Dir{})
func (dir *Dir) Attr(context context.Context, attr *fuse.Attr) error {
attr.Mode = os.ModeDir | 0777
return nil