Fix tmp dir creation.
This commit is contained in:
parent
39df2adef5
commit
9a0cf44ff3
@ -23,7 +23,7 @@ class AoRar:
|
|||||||
if os.path.isfile(local_filename):
|
if os.path.isfile(local_filename):
|
||||||
os.remove(local_filename)
|
os.remove(local_filename)
|
||||||
else:
|
else:
|
||||||
os.makedirs(local_filename)
|
os.makedirs(folders.temp)
|
||||||
|
|
||||||
request = requests.get(url, stream=True)
|
request = requests.get(url, stream=True)
|
||||||
with open(local_filename, 'wb') as f:
|
with open(local_filename, 'wb') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user