diff options
author | Audrius Butkevicius <audrius.butkevicius@gmail.com> | 2015-08-22 14:18:19 +0100 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2015-08-23 15:53:00 +0200 |
commit | 42dfa45d529cbc031198432fb2c3324d08970553 (patch) | |
tree | 6a17ca2d615e1f803d5d6a74dcdf0bba2f676a96 | |
parent | 706926543e3acc84cba3deeebb7ec757f19641b1 (diff) |
Try harder removing the temp file
-rw-r--r-- | lib/model/rwfolder.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model/rwfolder.go b/lib/model/rwfolder.go index 6c33983185..57b3bce944 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 |