Skip to content

Commit 36e95eb

Browse files
convert path to abspath in longpath
1 parent 5f141b8 commit 36e95eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/path.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ abspath(a::AbstractString, b::AbstractString...) = abspath(joinpath(a,b...))
470470
if Sys.iswindows()
471471

472472
function longpath(path::AbstractString)
473-
p = cwstring(path)
473+
p = cwstring(abspath(path)) # GetLongPathNameW requres absolute paths
474474
buf = zeros(UInt16, length(p))
475475
while true
476476
n = ccall((:GetLongPathNameW, "kernel32"), stdcall,

0 commit comments

Comments
 (0)