Recursive delete sub folders and files

This commit is contained in:
Jeremy Wu 2020-04-29 19:37:16 +10:00
parent b44c9b6469
commit d63ae1570a

View file

@ -89,7 +89,7 @@ namespace Flow.Launcher.Plugin.Folder
if (record.Type == ResultType.File)
File.Delete(record.FullPath);
else
Directory.Delete(record.FullPath);
Directory.Delete(record.FullPath, true);
}
catch(Exception e)
{