Skip to content

Commit

Permalink
convert path to abspath in longpath
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 23, 2024
1 parent 5f141b8 commit ccf952d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/path.jl
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ abspath(a::AbstractString, b::AbstractString...) = abspath(joinpath(a,b...))
if Sys.iswindows()

function longpath(path::AbstractString)
p = cwstring(path)
p = cwstring(abspath(path)) # GetLongPathNameW requires absolute paths
buf = zeros(UInt16, length(p))
while true
n = ccall((:GetLongPathNameW, "kernel32"), stdcall,
Expand Down

0 comments on commit ccf952d

Please sign in to comment.