avoid overwriting file already present on GitHub
This commit is contained in:
parent
86a217e20b
commit
460a3260c8
4
ch08.jl
4
ch08.jl
@ -5,13 +5,13 @@
|
||||
# Code for section 8.1
|
||||
|
||||
import Downloads
|
||||
if isfile("puzzles.csv.bz2")
|
||||
if isfile("new_puzzles.csv.bz2")
|
||||
@info "file already present"
|
||||
else
|
||||
@info "fetching file"
|
||||
Downloads.download("https://database.lichess.org/" *
|
||||
"lichess_db_puzzle.csv.bz2",
|
||||
"puzzles.csv.bz2")
|
||||
"new_puzzles.csv.bz2")
|
||||
end
|
||||
|
||||
using CodecBzip2
|
||||
|
Loading…
Reference in New Issue
Block a user