summaryrefslogtreecommitdiff
path: root/frontend/dir.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-05 19:07:20 +0200
committerJakob Unterwurzacher2015-09-05 19:07:20 +0200
commit199d3fd79ff03222cf7498418b40e1263f8aa104 (patch)
treee20363482b6332969687302b8e0fa668160b38d0 /frontend/dir.go
parent4ab9862ccb5911836acda9834b0b25f892229533 (diff)
Fix write path
Diffstat (limited to 'frontend/dir.go')
-rw-r--r--frontend/dir.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/dir.go b/frontend/dir.go
index ce64a5a..46be0db 100644
--- a/frontend/dir.go
+++ b/frontend/dir.go
@@ -103,6 +103,9 @@ func (d *Dir) Remove(ctx context.Context, req *fuse.RemoveRequest) error {
func (d *Dir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fusefs.Node, fusefs.Handle, error) {
fmt.Printf("Create\n")
+
+ req.Flags, _ = fixFlags(req.Flags)
+
req.Name = d.crfs.EncryptPath(req.Name)
n, _, err := d.Dir.Create(ctx, req, resp)
if err != nil {