You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
246 B

  1. package filesys
  2. import "bazil.org/fuse/fs"
  3. type WFS struct {
  4. filer string
  5. }
  6. func NewSeaweedFileSystem(filer string) *WFS {
  7. return &WFS{
  8. filer: filer,
  9. }
  10. }
  11. func (wfs *WFS) Root() (fs.Node, error) {
  12. return &Dir{Path: "/", wfs: wfs}, nil
  13. }