summaryrefslogtreecommitdiff
path: root/local.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-10-21 18:00:37 +0100
committerNick White <git@njw.name>2020-10-21 18:00:37 +0100
commitf706e96cb59d5548ed5afbbf1991dc442b8ffc09 (patch)
tree84d4870bf729283eb67382d44ccbe4f31bf4b815 /local.go
parent644abdb177331107696b2caf3f0de8ac76a74702 (diff)
Fix a bug that caused analyse step to not be triggered with local connection
Diffstat (limited to 'local.go')
-rw-r--r--local.go2
1 files changed, 1 insertions, 1 deletions
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