summaryrefslogtreecommitdiff
path: root/frontend/fs.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-03 23:54:12 +0200
committerJakob Unterwurzacher2015-09-03 23:54:12 +0200
commit6a110b8dde07a4bfa967547be8bf5b3756511a8b (patch)
tree045fd9015f0a83a38fafdfabd99cf5dde9d6d9df /frontend/fs.go
parent4b98f74e3e875361436e57d870aed48c4bb44d77 (diff)
Mounts and show an empty dir
Diffstat (limited to 'frontend/fs.go')
-rw-r--r--frontend/fs.go10
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
}