seaweedfs/weed/filesys/wfs.go

18 lines
246 B
Go
Raw Normal View History

2018-05-06 13:47:16 +08:00
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
}