mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 04:12: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
|
try
|
||||||
{
|
{
|
||||||
foreach (var dir in Directory.GetDirectories(path))
|
Directory.Delete(path, true);
|
||||||
{
|
|
||||||
Directory.Delete(dir, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user