mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-13 20:05:34 +00:00
Do not check whether the path exists before deletion (an exception will be caught anyway).
This commit is contained in:
parent
cbeb09ebcb
commit
244b3f1881
|
@ -55,18 +55,9 @@ namespace Build.Tasks
|
||||||
public override bool Execute()
|
public override bool Execute()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
|
||||||
if (String.IsNullOrEmpty(Path) ||
|
|
||||||
System.IO.Directory.Exists(Path))
|
|
||||||
{
|
|
||||||
Log.LogError(String.Format("Path '{0}' does not exist.", Path));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
System.IO.Directory.Delete(Path, true);
|
System.IO.Directory.Delete(Path, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log.LogErrorFromException(e);
|
Log.LogErrorFromException(e);
|
||||||
|
|
Loading…
Reference in a new issue