windows moment
This commit is contained in:
@@ -68,7 +68,14 @@ namespace Torch.Managers
|
||||
if (File.Exists(tempFilePath))
|
||||
File.Delete(tempFilePath);
|
||||
|
||||
File.Move(source, tempFilePath);
|
||||
try
|
||||
{
|
||||
File.Move(source, tempFilePath);
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -109,7 +109,14 @@ namespace Torch.Managers
|
||||
else
|
||||
{
|
||||
_fsManager.SoftDelete(extractPath, file.FullName);
|
||||
file.ExtractToFile(targetFile, true);
|
||||
try
|
||||
{
|
||||
file.ExtractToFile(targetFile, true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.Warn(e, "unable to extract {0}", targetFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user