diff options
Diffstat (limited to 'frontend/fs.go')
-rw-r--r-- | frontend/fs.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/frontend/fs.go b/frontend/fs.go index 4ce3e5c..637d134 100644 --- a/frontend/fs.go +++ b/frontend/fs.go @@ -7,14 +7,20 @@ import ( type FS struct { *cryptfs.FS + backing string } -func New(key [16]byte) *FS { +func New(key [16]byte, b string) *FS { return &FS { FS: cryptfs.NewFS(key), + backing: b, } } func (fs *FS) Root() (fs.Node, error) { - return nil, nil + n := Node{ + backing: "", + parentFS: fs, + } + return n, nil } |