mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Absorb file move errors
This commit is contained in:
@@ -679,7 +679,15 @@ namespace SabreTools.Helper
|
|||||||
Directory.CreateDirectory(outdir);
|
Directory.CreateDirectory(outdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
File.Move(outfile, Path.Combine(outdir, Path.GetFileName(outfile)));
|
try
|
||||||
|
{
|
||||||
|
File.Move(outfile, Path.Combine(outdir, Path.GetFileName(outfile)));
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
logger.Error(ex.ToString());
|
||||||
|
File.Delete(outfile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user