cake-build / cake-build/cake

MoveDirectory and CopyDirectory with overwrite

Open
#1,493 2 comments 3 reactions 0 assignees View on GitHub
Improvement
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
3h 37m
Merged PRs (30d)
21

Description

Please support overwriting with `MoveDirectory` and `CopyDirectory`.

A bool parameter in the third position would make sense, wouldn't it? This seems common enough and similar enough to other APIs:

```c#
MoveDirectory(fromPath, toPath, true);
CopyDirectory(fromPath, toPath, false);
```

Or should an entire options class be created in order to specify `Overwrite`?

Contributor guide

Open the contributing guide

Research direction

Start by locating the MoveDirectory and CopyDirectory API entry points and their existing tests. Review how related APIs represent overwrite behavior, then define and test the selected parameter or options design so both operations have the requested overwrite semantics.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.