aboutsummaryrefslogtreecommitdiff
path: root/frontend/dir.go
diff options
context:
space:
mode:
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 {