diff --git a/nav.go b/nav.go index d80e339..befdc2c 100644 --- a/nav.go +++ b/nav.go @@ -527,8 +527,16 @@ func (nav *nav) checkReg(reg *reg) { return } + now := time.Now() + + // XXX: Linux builtin exFAT drivers are able to predict modifications in the future + // https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/1872504 + if s.ModTime().After(now) { + return + } + if s.ModTime().After(reg.loadTime) { - reg.loadTime = time.Now() + reg.loadTime = now go nav.preview(reg.path) } }