From 460a3260c8b7917e8ca20e47ed2622b29902542d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Tue, 12 Jul 2022 22:37:35 +0200 Subject: [PATCH] avoid overwriting file already present on GitHub --- ch08.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch08.jl b/ch08.jl index b1838a9..30d8309 100644 --- a/ch08.jl +++ b/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