Skip to content

Commit

Permalink
dev(narugo): fix upload issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Dec 24, 2023
1 parent 05571d7 commit 7e86f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hfutils/operate/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def upload_directory_as_directory(local_directory, repo_id: str, path_in_repo: s
pre_exist_files.remove(segments)
operations.append(CommitOperationAdd(
path_or_fileobj=os.path.join(local_directory, file),
path_in_repo=f'{path_in_repo}/{file}',
path_in_repo=f'{path_in_repo}/{"/".join(segments)}',
))

for segments in sorted(pre_exist_files):
Expand Down

0 comments on commit 7e86f60

Please sign in to comment.