Skip to content

Commit 4901b07

Browse files
committed
[FlashpointManager] Fix component removal deleting files it shouldn't be
1 parent d401488 commit 4901b07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

FlashpointManager/src/Common.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public static void DeleteFileAndDirectories(string file)
385385

386386
while (folder != Directory.GetParent(SourcePath).ToString())
387387
{
388-
if (Directory.Exists(folder) && !Directory.EnumerateFiles(folder).Any())
388+
if (Directory.Exists(folder) && !Directory.EnumerateFiles(folder, "*", SearchOption.AllDirectories).Any())
389389
{
390390
try { Directory.Delete(folder, true); } catch { }
391391
}

0 commit comments

Comments
 (0)