Run long running work with Task.Run

This commit is contained in:
Matthew Parker [SSW]
2024-01-21 13:31:35 +10:00
parent 94dd69570d
commit 3bd688966b
4 changed files with 108 additions and 63 deletions

View File

@@ -3,7 +3,7 @@ namespace DotNetSolutionTools.Core;
public static class CleanFolder
{
public static void DeleteFolderWithOnlyBinAndObjSubFolders(string folderPath)
public static void DeleteBinObjAndNodeModulesFoldersInFolder(string folderPath)
{
var nodeModulesFolders = Directory.GetDirectories(folderPath, "*", SearchOption.AllDirectories)
.Where(x => x.EndsWith(Path.DirectorySeparatorChar + "node_modules"))