mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 22:32:56 +00:00
Simplify directory deletion
This commit is contained in:
parent
de8c6bb08a
commit
04db15847e
@ -190,10 +190,7 @@ public static partial class Pandoc
|
||||
|
||||
try
|
||||
{
|
||||
foreach (var dir in Directory.GetDirectories(path))
|
||||
{
|
||||
Directory.Delete(dir, true);
|
||||
}
|
||||
Directory.Delete(path, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user