Skip to content

Commit

Permalink
use mkpath to create directories so the can be specied to be nested
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Dec 9, 2020
1 parent ae25a0d commit fb852db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tzdata/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ function build(
end

function build(version::AbstractString=tzdata_version())
isdir(ARCHIVE_DIR) || mkdir(ARCHIVE_DIR)
isdir(TZ_SOURCE_DIR) || mkdir(TZ_SOURCE_DIR)
isdir(COMPILED_DIR) || mkdir(COMPILED_DIR)
isdir(ARCHIVE_DIR) || mkpath(ARCHIVE_DIR)
isdir(TZ_SOURCE_DIR) || mkpath(TZ_SOURCE_DIR)
isdir(COMPILED_DIR) || mkpath(COMPILED_DIR)

# Empty the compile directory in case to handle different versions not overriding all
# files.
Expand Down

0 comments on commit fb852db

Please sign in to comment.