whoops ok need path.join everwhere if i want it anywhere

This commit is contained in:
bel
2019-06-22 17:05:28 -06:00
parent 15c5e73d05
commit 95aa3f85fe
2 changed files with 5 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ func NewLevelDB(path string) (*LevelDB, error) {
func (ldb *LevelDB) List(ns []string, limits ...string) ([]string, error) {
namespace := resolveNamespace(ns)
namespace = path.Join(namespace)
limits = resolveLimits(limits)
limits[0] = path.Join(namespace, limits[0])
limits[1] = path.Join(namespace, limits[1])