Simplify directory deletion

This commit is contained in:
Thorsten Sommer 2025-05-29 15:01:30 +02:00
parent de8c6bb08a
commit 04db15847e
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -190,10 +190,7 @@ public static partial class Pandoc
try try
{ {
foreach (var dir in Directory.GetDirectories(path)) Directory.Delete(path, true);
{
Directory.Delete(dir, true);
}
} }
catch (Exception ex) catch (Exception ex)
{ {