Fixed removing partials before trying to copy files.

This commit is contained in:
Taloth Saldono
2015-10-09 00:00:28 +02:00
parent a39b36d157
commit bb482047b1
2 changed files with 21 additions and 2 deletions
@@ -316,6 +316,12 @@ namespace NzbDrone.Common.Disk
var tempTargetPath = targetPath + ".partial~";
if (_diskProvider.FileExists(tempTargetPath))
{
_logger.Trace("Removing old partial.");
_diskProvider.DeleteFile(tempTargetPath);
}
try
{
for (var i = 0; i <= RetryCount; i++)