Skip to content

Commit

Permalink
mkpath should always return the path (fix #29989)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Nov 9, 2018
1 parent a3599e9 commit 9d3b644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ julia> readdir("test")
function mkpath(path::AbstractString; mode::Integer = 0o777)
isdirpath(path) && (path = dirname(path))
dir = dirname(path)
(path == dir || isdir(path)) && return
(path == dir || isdir(path)) && return path
mkpath(dir, mode = checkmode(mode))
try
mkdir(path, mode = mode)
Expand Down

0 comments on commit 9d3b644

Please sign in to comment.