Skip to content

Commit 3479c39

Browse files
committed
fix os.copy
1 parent c198ec3 commit 3479c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/src/FileOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ object copy {
202202

203203
def copyOne(p: Path): Unit = {
204204
val target = to / p.relativeTo(from)
205-
if (mergeFolders && isDir(p, followLinks) && !exists(target,followLinks)) {
205+
if (mergeFolders && isDir(p, followLinks) && !isLink(p) && !exists(target, followLinks)) {
206206
os.makeDir(target)
207207
} else if (mergeFolders && isDir(p, followLinks) && isDir(target, followLinks)) {
208208
// nothing to do

0 commit comments

Comments
 (0)