Skip to content

Commit 55b6998

Browse files
committed
Don't delete the folder itself. Makes for easier debugging
1 parent 3ccb9eb commit 55b6998

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Src/FastData.InternalShared/Helpers/TestHelper.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ public static class TestHelper
2121
public static void CreateOrEmptyDirectory(string path)
2222
{
2323
if (Directory.Exists(path))
24-
Directory.Delete(path, true);
24+
{
25+
foreach (string file in Directory.EnumerateFiles(path))
26+
File.Delete(file);
27+
28+
foreach (string dir in Directory.EnumerateDirectories(path))
29+
Directory.Delete(dir, recursive: true);
30+
}
2531

2632
Directory.CreateDirectory(path);
2733
}

0 commit comments

Comments
 (0)