Skip to content

where is the code checking if file is already downloaded #3600

Answered by mikf
mo-han asked this question in Q&A
Discussion options

You must be logged in to vote

The archive check is in

if archive and archive.check(kwdict):
pathfmt.fix_extension()
self.handle_skip()
return

and there are a couple of PathFormat.exists() checks all over the place

def exists(self):
"""Return True if the file exists on disk"""
if self.extension and os.path.exists(self.realpath):
return self.check_file()
return False

if pathfmt.exists():

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mo-han
Comment options

Answer selected by mo-han
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants