fix typo for substrs
parent
5b57d3f6ea
commit
9ba3eab474
3
files.go
3
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)
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue