Spaces:
Runtime error
Runtime error
Efreak
commited on
explicitly cast int to string. i dont use python, sorry.
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def duplicate(source_url, dst_repo, token, new_name, dst_repo_path, repo_type):
|
|
26 |
login(token=token)
|
27 |
|
28 |
# keep things separate, partly in case people download different files with same name (`download.zip`). Especially, it also allows saving filename to work
|
29 |
-
dir="/home/user/apps/downloads/"+int(time.time())+random.getrandbits(8)+"/"
|
30 |
subprocess.check_call([r"mkdir","-p",dir])
|
31 |
subprocess.check_call([r"aria2c","-x16","--split=16",source_url,"--dir="+dir])
|
32 |
files=os.listdir(dir)
|
|
|
26 |
login(token=token)
|
27 |
|
28 |
# keep things separate, partly in case people download different files with same name (`download.zip`). Especially, it also allows saving filename to work
|
29 |
+
dir="/home/user/apps/downloads/"+str(int(time.time()))+str(random.getrandbits(8))+"/"
|
30 |
subprocess.check_call([r"mkdir","-p",dir])
|
31 |
subprocess.check_call([r"aria2c","-x16","--split=16",source_url,"--dir="+dir])
|
32 |
files=os.listdir(dir)
|