Skip to content

Commit 86daaf4

Browse files
committed
protect against missing checksum in verify_download
1 parent 7e36231 commit 86daaf4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/verify_download.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ begin
186186
suspect_files_dir = joinpath(path,suspect_dirname)
187187
isdir(suspect_files_dir) || mkdir(suspect_files_dir)
188188
for file in meta_bad_checksum_df.filename
189-
mv(joinpath(path,file), joinpath(suspect_files_dir,file), force=true)
189+
if isfile(joinpath(path,file))
190+
mv(joinpath(path,file), joinpath(suspect_files_dir,file), force=true)
191+
end
190192
end
191193
end
192194
end
@@ -226,7 +228,9 @@ if !args["crawl"]
226228

227229
if !args["quiet"]
228230
println("# verify_downloads.jl $input_path identified ", size(need_to_redownload_df,1), " files to download.")
229-
println(need_to_redownload_df)
231+
if size(need_to_redownload_df,1) >= 1
232+
println(need_to_redownload_df)
233+
end
230234
end
231235

232236
else

0 commit comments

Comments
 (0)