Don't force rescan dirs and symlinks

We can't look for changed modtime on these as we don't track the modtime
to start with.
This commit is contained in:
Jakob Borg 2015-11-04 19:53:07 +00:00
parent 2aa028facb
commit 686f91777c

View File

@ -942,7 +942,7 @@ func (p *rwFolder) handleFile(file protocol.FileInfo, copyChan chan<- copyBlocks
tempName := filepath.Join(p.dir, defTempNamer.TempName(file.Name)) tempName := filepath.Join(p.dir, defTempNamer.TempName(file.Name))
realName := filepath.Join(p.dir, file.Name) realName := filepath.Join(p.dir, file.Name)
if hasCurFile { if hasCurFile && !curFile.IsDirectory() && !curFile.IsSymlink() {
// Check that the file on disk is what we expect it to be according to // Check that the file on disk is what we expect it to be according to
// the database. If there's a mismatch here, there might be local // the database. If there's a mismatch here, there might be local
// changes that we don't know about yet and we should scan before // changes that we don't know about yet and we should scan before