mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[FileTools] Create and use safe file/directory delete
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using SabreTools.Helper.Data;
|
||||
using SabreTools.Helper.Tools;
|
||||
|
||||
#if MONO
|
||||
using System.IO;
|
||||
@@ -758,7 +759,7 @@ namespace ROMVault2.SupportedFiles.Zip
|
||||
_zipstream.Dispose();
|
||||
|
||||
// Delete the failed file
|
||||
File.Delete(_zipFileInfo.FullName);
|
||||
FileTools.SafeTryDeleteFile(_zipFileInfo.FullName);
|
||||
_zipFileInfo = null;
|
||||
_zipOpen = ZipOpenType.Closed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user