Skip to content

Commit 71a3ff3

Browse files
committed
Fix on copying
1 parent efad631 commit 71a3ff3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "DFControl"
22
uuid = "1e31e15d-4957-550d-a244-318eced754ae"
33
authors = ["Louis Ponet <[email protected]>"]
44
repo = "https://github.com/louisponet/DFControl.jl.git"
5-
version = "0.5.23"
5+
version = "0.5.24"
66

77
[deps]
88
ANSIColoredPrinters = "a4c015fc-c6ff-483c-b24f-f7ea428134e9"

src/Jobs/job.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ for (f, strs) in zip((:cp, :mv), (("copy", "Copies"), ("move", "Moves")))
277277
if joinpath(job, file) == abspath(dest)
278278
continue
279279
end
280-
$f(server, p, joinpath(dest, file); kwargs...)
280+
destpath = joinpath(dest, file)
281+
if destpath != p
282+
$f(server, p, destpath; kwargs...)
283+
end
281284
end
282285
end
283286
end

0 commit comments

Comments
 (0)