From 9ba3eab4742e27be8fc7d9b2fe30d2d6ef34fabd Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Thu, 27 Aug 2020 14:42:31 -0600 Subject: [PATCH] fix typo for substrs --- files.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files.go b/files.go index 4c0adee..dcaaecb 100755 --- a/files.go +++ b/files.go @@ -36,7 +36,7 @@ func (b *Files) List(ns []string, limits ...string) ([]string, error) { if info.IsDir() { return nil } - if !strings.HasPrefix(strings.TrimPrefix(p, b.root+"/"), namespace) { + if !strings.HasPrefix(strings.TrimPrefix(p, b.root+"/"), namespace+"/") { return nil } files = append(files, strings.TrimPrefix(p, path.Join(b.root, namespace)+"/")) @@ -44,7 +44,6 @@ func (b *Files) List(ns []string, limits ...string) ([]string, error) { }) return files, err /* - namespace := resolveNamespace(ns) limits = resolveLimits(limits) */ }