mirror of
https://github.com/syncthing/syncthing.git
synced 2026-11-26 20:06:31 -08:00
Try harder removing the temp file
This commit is contained in:
1 parent
706926543e
commit
42dfa45d52
1 file changed
+1
-1
@@ -1015,7 +1015,7 @@ func (p *rwFolder) handleFile(file protocol.FileInfo, copyChan chan<- copyBlocks
|
||||
// Otherwise, discard the file ourselves in order for the
|
||||
// sharedpuller not to panic when it fails to exclusively create a
|
||||
// file which already exists
|
||||
os.Remove(tempName)
|
||||
osutil.InWritableDir(osutil.Remove, tempName)
|
||||
}
|
||||
} else {
|
||||
blocks = file.Blocks
|
||||
|
||||
Reference in new issue
Block a user