We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0eed6bf + 860f338 commit d0fc7ebCopy full SHA for d0fc7eb
TiaGitHandler/Program.cs
@@ -1234,6 +1234,7 @@ public static void DeleteDirectory(string path)
1234
DeleteDir(path);
1235
}
1236
1237
+ static int DeleteDirCounter = 0;
1238
private static void DeleteDir(string dir)
1239
{
1240
try
@@ -1243,10 +1244,16 @@ private static void DeleteDir(string dir)
1243
1244
1245
catch (IOException)
1246
1247
+ DeleteDirCounter++;
1248
+ if (DeleteDirCounter > 10)
1249
+ throw;
1250
DeleteDir(dir);
1251
1252
catch (UnauthorizedAccessException)
1253
1254
1255
1256
1257
1258
1259
0 commit comments