X-Git-Url: http://www.git.stargrave.org/?p=glocate.git;a=blobdiff_plain;f=diff.go;fp=diff.go;h=be79911b777e14b1857fe35a74639400adbbdb1a91a80884fcf0640ce71a5d78;hp=31712d63aaff055dea895b639dbc85323a6ab1e46d393ae7a232f2a4b80d9f1d;hb=66cef1659e7d49d330e693b5747bed1167c6294622908a868adc0597c7d5743a;hpb=e796780ae74b49e3a44ec2c20dfb3b22fa3c7916aa96d2e27937f5658eea2b6b diff --git a/diff.go b/diff.go index 31712d6..be79911 100644 --- a/diff.go +++ b/diff.go @@ -61,6 +61,7 @@ func updateWithDiff(dbPath, strip string) *os.File { } isDir = cols[1] == "/" name := deoctalize(strings.TrimPrefix(cols[2], strip)) + name = strings.TrimRight(name, "/") if name == "" { continue }