Archived
Try harder removing the temp file
This commit is contained in:
1 parent
ca4a3589e5
commit
42acf0ed60
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
|
// Otherwise, discard the file ourselves in order for the
|
||||||
// sharedpuller not to panic when it fails to exclusively create a
|
// sharedpuller not to panic when it fails to exclusively create a
|
||||||
// file which already exists
|
// file which already exists
|
||||||
os.Remove(tempName)
|
osutil.InWritableDir(osutil.Remove, tempName)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
blocks = file.Blocks
|
blocks = file.Blocks
|
||||||
|
|||||||
Reference in new issue
Block a user