Skip to content

Commit

Permalink
Fix mkpath error handling (JuliaLang#36126)
Browse files Browse the repository at this point in the history
The error thrown by `mkdir` when the directory already exists was changed in JuliaLang#33422.
  • Loading branch information
simonbyrne committed Jun 3, 2020
1 parent c69fab5 commit 912a8ed
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 @@ -228,7 +228,7 @@ function mkpath(path::AbstractString; mode::Integer = 0o777)
catch err
# If there is a problem with making the directory, but the directory
# does in fact exist, then ignore the error. Else re-throw it.
if !isa(err, SystemError) || !isdir(path)
if !isa(err, IOError) || !isdir(path)
rethrow()
end
end
Expand Down

0 comments on commit 912a8ed

Please sign in to comment.