summaryrefslogtreecommitdiff
path: root/local.go
diff options
context:
space:
mode:
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