Making copy a little friendlier (allowing existing directories) #17
No reviewers
Labels
No labels
Bug
Enhancement
Feature Request
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/wrench-js#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Let's play nice. Now when using copyDirSyncRecursive, you can pass an optional opts object. If this object contains a preserve member, then the function will preserve exisiting directories and only overwrite existing files within the directories. Without passing the option it behaves the same as always. Small change, big convenience.
So before, when doing something like this:
whatever was already in that plugins directory would get blown away.
Now you can do this:
and the plugins directory and anything in it that is not in the directory you are copying will be preserved.
I've been sick for the past week, no pull requests have been getting the attention they deserved. This has now been merged.