mirror of https://github.com/abpframework/abp.git
3 changed files with 22 additions and 12 deletions
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using System.Linq; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps; |
|||
|
|||
public class RemoveFoldersStep : ProjectBuildPipelineStep |
|||
{ |
|||
private readonly string _folderPath; |
|||
|
|||
public RemoveFoldersStep(string folderPath) |
|||
{ |
|||
_folderPath = folderPath; |
|||
} |
|||
|
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
context.Files.RemoveAll(file => file.Name.Contains(_folderPath)); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue