refactoring fuse

This commit is contained in:
Chris Lu
2018-05-05 22:47:16 -07:00
parent 2cada598c6
commit 456738ba64
4 changed files with 117 additions and 100 deletions

17
weed/filesys/wfs.go Normal file
View File

@@ -0,0 +1,17 @@
package filesys
import "bazil.org/fuse/fs"
type WFS struct {
filer string
}
func NewSeaweedFileSystem(filer string) *WFS {
return &WFS{
filer: filer,
}
}
func (wfs *WFS) Root() (fs.Node, error) {
return &Dir{Path: "/", wfs: wfs}, nil
}