Skip to content

Commit

Permalink
dev(narugo): fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Jul 28, 2024
1 parent e8e7a7d commit 37c7909
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hfutils/operate/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,14 @@ def upload_directory_as_directory(
if clear:
pre_exist_files = {
tuple(file.split('/')) for file in
list_files_in_repository(repo_id, repo_type, path_in_repo, revision, ignore_patterns, hf_token=hf_token)
list_files_in_repository(
repo_id=repo_id,
repo_type=repo_type,
subdir=path_in_repo,
revision=revision,
ignore_patterns=ignore_patterns,
hf_token=hf_token
)
}
else:
pre_exist_files = set()
Expand Down

0 comments on commit 37c7909

Please sign in to comment.