Skip to content

Commit ad2177e

Browse files
committed
realpath only if exists
1 parent 5d9ee12 commit ad2177e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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.25"
5+
version = "0.5.26"
66

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

src/Jobs/job.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ for (f, strs) in zip((:cp, :mv), (("copy", "Copies"), ("move", "Moves")))
277277
if joinpath(job, file) == abspath(dest)
278278
continue
279279
end
280-
destpath = realpath(server, joinpath(dest, file))
280+
tp = joinpath(dest, file)
281+
destpath = ispath(server, tp) ? realpath(server, tp) : tp
281282
if destpath != p
282283
$f(server, p, destpath; kwargs...)
283284
end

0 commit comments

Comments
 (0)