From 0d6c7c560620f0ad899eba0d8887965d740ef8d9 Mon Sep 17 00:00:00 2001 From: Xavier Lucas Date: Wed, 15 Jun 2016 14:58:32 +0200 Subject: [PATCH] Subdirectory handling for horizon fixes #72 Signed-off-by: Xavier Lucas --- svfs/directory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svfs/directory.go b/svfs/directory.go index 9b79bd1..e046c23 100644 --- a/svfs/directory.go +++ b/svfs/directory.go @@ -249,7 +249,7 @@ func (d *Directory) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *f // Mkdir creates a new directory node within the current directory. It is represented // by an empty object ending with a slash in the Swift container. func (d *Directory) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error) { - absPath := d.path + req.Name + absPath := d.path + req.Name + "/" // Create the file in swift if err := SwiftConnection.ObjectPutBytes(d.c.Name, absPath, nil, dirContentType); err != nil { @@ -261,7 +261,7 @@ func (d *Directory) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, c: d.c, cs: d.cs, name: req.Name, - path: absPath + "/", + path: absPath, sh: swift.Headers{}, so: &swift.Object{ Name: absPath,