In Linux (and probably MacOS as well) systems, merging causes permission errors on overwriting a file (like .gitignore) when a source directory is read-only, because copy in deno_std preserve the permissions of the original file for the copied one.
This PR proposes a possible solution, which simply disables overwriting and asserts the type of errors.
Feel free to ask me more information, or close the PR if it doesn't fit your favor.
In Linux (and probably MacOS as well) systems, merging causes permission errors on overwriting a file (like .gitignore) when a source directory is read-only, because
copy
in deno_std preserve the permissions of the original file for the copied one.This PR proposes a possible solution, which simply disables overwriting and asserts the type of errors.
Feel free to ask me more information, or close the PR if it doesn't fit your favor.