[Settings] Added recursive delete for IOProvider DeleteDirectory to prevent crash on non-empty directory (#6818)

* Added recursive delete flag

* Changed to named parameter
This commit is contained in:
Arjun Balgovind
2020-09-24 11:36:26 -07:00
committed by GitHub
parent c941b5333c
commit 9e1711cbb9

View File

@@ -16,7 +16,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib.Utilities
public void DeleteDirectory(string path) public void DeleteDirectory(string path)
{ {
Directory.Delete(path); Directory.Delete(path, recursive: true);
} }
public bool DirectoryExists(string path) public bool DirectoryExists(string path)