From 44bc5fd7840e85dcb8f2a48844a127a672cff475 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 14 Jul 2014 23:59:11 +0200 Subject: [PATCH] Pick up resurrected dirs --- scanner/walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/walk.go b/scanner/walk.go index 3c0a20c13..374b29ae9 100644 --- a/scanner/walk.go +++ b/scanner/walk.go @@ -171,7 +171,7 @@ func (w *Walker) walkAndHashFiles(res *[]protocol.FileInfo, ign map[string][]str if w.CurrentFiler != nil { cf := w.CurrentFiler.CurrentFile(rn) permUnchanged := w.IgnorePerms || !protocol.HasPermissionBits(cf.Flags) || PermsEqual(cf.Flags, uint32(info.Mode())) - if cf.Modified == info.ModTime().Unix() && protocol.IsDirectory(cf.Flags) && permUnchanged { + if !protocol.IsDeleted(cf.Flags) && cf.Modified == info.ModTime().Unix() && protocol.IsDirectory(cf.Flags) && permUnchanged { if debug { l.Debugln("unchanged:", cf) }