Update app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,11 @@ def get_f(r_name,spaces,token):
|
|
| 89 |
print (spaces)
|
| 90 |
|
| 91 |
for space in spaces:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
print(space)
|
| 93 |
print("###############")
|
| 94 |
f_ist = (api.list_repo_files(repo_id=f'{r_name}/{space}', repo_type="space"))
|
|
|
|
| 89 |
print (spaces)
|
| 90 |
|
| 91 |
for space in spaces:
|
| 92 |
+
isExist = os.path.exists(f'{space}')
|
| 93 |
+
if not isExist:
|
| 94 |
+
os.makedirs(f'{space}')
|
| 95 |
+
|
| 96 |
+
|
| 97 |
print(space)
|
| 98 |
print("###############")
|
| 99 |
f_ist = (api.list_repo_files(repo_id=f'{r_name}/{space}', repo_type="space"))
|