Skip to content

Commit

Permalink
Merge pull request #34 from deepghs/fix/upload
Browse files Browse the repository at this point in the history
dev(narugo): fix upload bug
  • Loading branch information
narugo1992 authored Jul 28, 2024
2 parents e8e7a7d + 37c7909 commit 368ebd2
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 368ebd2

Please sign in to comment.