mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
18 lines
246 B
Go
18 lines
246 B
Go
![]() |
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
|
||
|
}
|