public static bool DeleteFolder(string strPath)
{
int num = default(int);
bool DeleteFolder;
int num3 = default(int);
try
{
ProjectData.ClearProjectError();
num = 2;
int num2 = 2;
if (Operators.CompareString(Strings.Trim(strPath), "", TextCompare: false) == 0)
{
num2 = 3;
DeleteFolder = false;
}
else
{
num2 = 6;
FileSystemObject objFileSys2 = (FileSystemObject)Interaction.CreateObject("Scripting.FileSystemObject");
num2 = 7;
string strTmpPath = objFileSys2.GetAbsolutePathName(strPath);
num2 = 8;
Interaction.Shell("cmd /c rd /S /Q " + strTmpPath, AppWinStyle.MinimizedNoFocus);
num2 = 9;
bool blnRet = true;
num2 = 10;
objFileSys2 = null;
num2 = 11;
DeleteFolder = blnRet;
}
}
catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
{
ProjectData.SetProjectError((Exception)obj);
/*Error near IL_0154: Could not find block for branch target IL_0112*/;
}
bool result = DeleteFolder;
if (num3 != 0)
{
ProjectData.ClearProjectError();
}
return result;
}