Commit
·
bde6a46
1
Parent(s):
deca531
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def duplicate(source_repo, dst_repo, token, repo_type):
|
|
40 |
for f in files:
|
41 |
directories_list = root.split("/")
|
42 |
path_in_repo = "/".join(directories_list[1:])
|
43 |
-
if
|
44 |
upload_file(os.path.join(local_dir, path_in_repo, f), f, dst_repo, token=token, repo_type=repo_type, path_in_repo=path_in_repo)
|
45 |
else:
|
46 |
upload_file(os.path.join(local_dir, path_in_repo, f), f, dst_repo, token=token, repo_type=repo_type)
|
|
|
40 |
for f in files:
|
41 |
directories_list = root.split("/")
|
42 |
path_in_repo = "/".join(directories_list[1:])
|
43 |
+
if path_in_repo:
|
44 |
upload_file(os.path.join(local_dir, path_in_repo, f), f, dst_repo, token=token, repo_type=repo_type, path_in_repo=path_in_repo)
|
45 |
else:
|
46 |
upload_file(os.path.join(local_dir, path_in_repo, f), f, dst_repo, token=token, repo_type=repo_type)
|