Skip to content

Instantly share code, notes, and snippets.

@tc87
Created March 31, 2020 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tc87/5ef9709e29cfd4311bf5cf19d4b1397f to your computer and use it in GitHub Desktop.
Save tc87/5ef9709e29cfd4311bf5cf19d4b1397f to your computer and use it in GitHub Desktop.
# If the file exists and has the expected size, return.
if os.path.exists(file_path):
if "size" not in EXTERNAL_DEPENDENCIES[file_path]:
return
elif os.path.getsize(file_path) == EXTERNAL_DEPENDENCIES[file_path]["size"]:
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment