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 36e00e0 commit 413631dCopy full SHA for 413631d
os/src/FileOps.scala
@@ -202,7 +202,9 @@ object copy {
202
203
def copyOne(p: Path): Unit = {
204
val target = to / p.relativeTo(from)
205
- if (mergeFolders && isDir(p, followLinks) && isDir(target, followLinks)) {
+ if (mergeFolders && isDir(p, false) && !exists(target, false)) {
206
+ os.makeDir(target)
207
+ } else if (mergeFolders && isDir(p, followLinks) && isDir(target, followLinks)) {
208
// nothing to do
209
} else {
210
Files.copy(p.wrapped, target.wrapped, opts1 ++ opts2 ++ opts3: _*)
0 commit comments