Spaces:
Sleeping
Sleeping
Efreak
commited on
Fix using wrong variable
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def duplicate(source_url, dst_repo, token, new_name, dst_repo_path, repo_type):
|
|
| 44 |
)
|
| 45 |
|
| 46 |
# now clean up
|
| 47 |
-
os.remove(
|
| 48 |
os.rmdir(dir)
|
| 49 |
|
| 50 |
return (
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
# now clean up
|
| 47 |
+
os.remove(dir+files[0])
|
| 48 |
os.rmdir(dir)
|
| 49 |
|
| 50 |
return (
|