We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ccb9eb commit 55b6998Copy full SHA for 55b6998
1 file changed
Src/FastData.InternalShared/Helpers/TestHelper.cs
@@ -21,7 +21,13 @@ public static class TestHelper
21
public static void CreateOrEmptyDirectory(string path)
22
{
23
if (Directory.Exists(path))
24
- Directory.Delete(path, true);
+ {
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
+ }
31
32
Directory.CreateDirectory(path);
33
}
0 commit comments