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.
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.