We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c198ec3 commit 3479c39Copy full SHA for 3479c39
os/src/FileOps.scala
@@ -202,7 +202,7 @@ object copy {
202
203
def copyOne(p: Path): Unit = {
204
val target = to / p.relativeTo(from)
205
- if (mergeFolders && isDir(p, followLinks) && !exists(target,followLinks)) {
+ if (mergeFolders && isDir(p, followLinks) && !isLink(p) && !exists(target, followLinks)) {
206
os.makeDir(target)
207
} else if (mergeFolders && isDir(p, followLinks) && isDir(target, followLinks)) {
208
// nothing to do
0 commit comments