fix tests and double namespacing depending on backend

This commit is contained in:
bel
2020-04-08 04:00:03 +00:00
parent e5ba896fd4
commit 963e302cb4
4 changed files with 9 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ func (b *Files) List(ns []string, limits ...string) ([]string, error) {
if !strings.HasPrefix(strings.TrimPrefix(p, b.root+"/"), namespace) {
return nil
}
files = append(files, path.Join(b.root, p))
files = append(files, strings.TrimPrefix(p, path.Join(b.root, namespace)+"/"))
return nil
})
return files, err