From 42acf0ed600b4619be75c7769576a11b5b9152f8 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Sat, 22 Aug 2015 14:18:19 +0100 Subject: [PATCH] Try harder removing the temp file --- lib/model/rwfolder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/rwfolder.go b/lib/model/rwfolder.go index 6c3398318..57b3bce94 100644 --- a/lib/model/rwfolder.go +++ b/lib/model/rwfolder.go @@ -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