Skip to content

Commit

Permalink
Ensure dump download destination exists
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Apr 1, 2023
1 parent 1d973e2 commit a3a2f8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/download_dumps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ DOWNLOADS = Dict(

function download_dump(url, destination; force=false, verbose=true)
if !isfile(destination) || force
mkpath(dirname(destination))
verbose && (@info "Downloading $url => $destination")
Downloads.download(url, destination)
else
Expand Down

0 comments on commit a3a2f8e

Please sign in to comment.