Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion SuperCAL/Classes/Wipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,16 @@ public static bool DeleteDirectory(string path)
catch(UnauthorizedAccessException)
{
Logger.Error(file + ": Failed to delete: Access Denied! (The file may be open or in use)");
return false;
Logger.Warning("Attempting deletion method #2");
Misc.RunCMD("del " + file);
if(File.Exists(file))
{
Logger.Error(file + ": Failed to delete using method #2.\n\nTry manually deleting the file using CMD.");
return false;
} else
{
Logger.Good(file + ": Deleted using method #2!");
}
}
catch (Exception e)
{
Expand Down
6 changes: 3 additions & 3 deletions SuperCAL/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.