From f706e96cb59d5548ed5afbbf1991dc442b8ffc09 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 21 Oct 2020 18:00:37 +0100 Subject: Fix a bug that caused analyse step to not be triggered with local connection --- local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local.go b/local.go index 72c4e79..ebc3611 100644 --- a/local.go +++ b/local.go @@ -132,8 +132,8 @@ func prefixwalker(dirpath string, prefix string, list *[]ObjMeta) filepath.WalkF if info.IsDir() { return nil } - //n := filepath.Base(path) n := strings.TrimPrefix(path, dirpath) + n = strings.TrimPrefix(n, "/") o := ObjMeta{Name: n, Date: info.ModTime()} *list = append(*list, o) return nil -- cgit v1.2.1-24-ge1ad