diff options
-rw-r--r-- | finder/finder.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/finder/finder.go b/finder/finder.go index 8f9496d3..c2df9289 100644 --- a/finder/finder.go +++ b/finder/finder.go @@ -661,6 +661,9 @@ func (f *Finder) serializeCacheEntry(dirInfos []dirFullInfo) ([]byte, error) { for _, info := range infos { for !strings.HasPrefix(info.P+"/", prefix+"/") { prefix = filepath.Dir(prefix) + if prefix == "/" { + break + } } } // remove common prefix |