X-Git-Url: http://www.git.stargrave.org/?p=glocate.git;a=blobdiff_plain;f=diff.go;h=181f5c3ee94b6acbe65d9b29786325b881e0d221b7af78d7481638beacbcf832;hp=be79911b777e14b1857fe35a74639400adbbdb1a91a80884fcf0640ce71a5d78;hb=ed2896a762bea39292e603a4f03b26a260993c90bd5884ab94fa9f961cff501f;hpb=66cef1659e7d49d330e693b5747bed1167c6294622908a868adc0597c7d5743a diff --git a/diff.go b/diff.go index be79911..181f5c3 100644 --- a/diff.go +++ b/diff.go @@ -223,6 +223,9 @@ func updateWithDiff(dbPath, strip string) *os.File { ent.size = mods[0].size mods = mods[1:] } + if ent.IsDir() { + ent.size = 0 + } entsDirSizer <- ent } for len(adds) > 0 {