mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
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:
parent
2aa028facb
commit
686f91777c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user