osanseviero HF staff commited on
Commit
9e669b8
1 Parent(s): c60cd64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def duplicate(source_repo, dst_repo, token, repo_type):
41
  if ".git" not in root:
42
  # remove hub/namespace/reponame
43
  directory_path_in_repo = "/".join(root.split("/")[3:])
44
- path_in_repo = os.join(directory_path_in_repo, f)
45
  local_file_path = os.path.join(local_dir, path_in_repo)
46
  print("From: ", local_file_path, " to: ", path_in_repo)
47
  upload_file(path_or_fileobj=local_file_path, path_in_repo=path_in_repo, repo_id=dst_repo, token=token, repo_type=repo_type)
 
41
  if ".git" not in root:
42
  # remove hub/namespace/reponame
43
  directory_path_in_repo = "/".join(root.split("/")[3:])
44
+ path_in_repo = os.path.join(directory_path_in_repo, f)
45
  local_file_path = os.path.join(local_dir, path_in_repo)
46
  print("From: ", local_file_path, " to: ", path_in_repo)
47
  upload_file(path_or_fileobj=local_file_path, path_in_repo=path_in_repo, repo_id=dst_repo, token=token, repo_type=repo_type)