From 42dfa45d529cbc031198432fb2c3324d08970553 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