dotnet / dotnet/msbuild

RemoveDir Task should error or prompt for confirmation when provided Directories argument is empty

Open
#4,105 2 comments 0 reactions 0 assignees View on GitHub
Area: Tasks triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Steps to reproduce
```

```
If at runtime $(My_Local_DirPath) is empty

RemoveDir will actually execute and print this on console
Removing Directory ``` "\" ``` and will delete the entire root.

Suggestion:
1) Prompt user if they really want to delete in this particular scenario
2) Or introduce a new parameter for RemoveDir task
NoPrompt
or
Force

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.