Changed sha512 to sha256 to avoid "file name too long" error (issue #51)
This commit is contained in:
commit
8b3ffc8dc8
|
@ -35,7 +35,7 @@ def download(args, url, prefix, cache=True):
|
|||
# Check if file exists in cache
|
||||
prefix = prefix.replace("/", "_")
|
||||
path = (args.work + "/cache_http/" + prefix + "_" +
|
||||
hashlib.sha512(url.encode("utf-8")).hexdigest())
|
||||
hashlib.sha256(url.encode("utf-8")).hexdigest())
|
||||
if os.path.exists(path):
|
||||
if cache:
|
||||
return path
|
||||
|
|
Loading…
Reference in New Issue