aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
new file mode 100644
index 000000000..f0716b650
--- /dev/null
+++ b/weed/filesys/wfs.go
@@ -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
+}