forked from jjjake/internetarchive
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exit early when downloading existing file
jjjake#614 moved skip checks to until after response headers have been received, which drastically slows down the download process if the file already exists or the file has an equal checksum. Since the file name and checksum are already known prior to download, these checks should remain at the start to avoid having to make a request which would eventually be discarded anyway.
- Loading branch information
1 parent
4efd45f
commit 8327c01
Showing
1 changed file
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters