mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-17 17:51:20 +08:00
refactoring fuse
This commit is contained in:
17
weed/filesys/wfs.go
Normal file
17
weed/filesys/wfs.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user