summaryrefslogtreecommitdiff
path: root/frontend/fs.go
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/fs.go')
-rw-r--r--frontend/fs.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/frontend/fs.go b/frontend/fs.go
index 464c19f..4ce3e5c 100644
--- a/frontend/fs.go
+++ b/frontend/fs.go
@@ -2,8 +2,19 @@ package frontend
import (
"github.com/rfjakob/gocryptfs/cryptfs"
+ "bazil.org/fuse/fs"
)
type FS struct {
- cryptfs.FS
+ *cryptfs.FS
+}
+
+func New(key [16]byte) *FS {
+ return &FS {
+ FS: cryptfs.NewFS(key),
+ }
+}
+
+func (fs *FS) Root() (fs.Node, error) {
+ return nil, nil
}