Skip to content

Commit 2cb1bfb

Browse files
committed
fix typo again
1 parent 92a93f0 commit 2cb1bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,7 @@ def list_repo_tree(
30733073
headers = self._build_hf_headers(token=token)
30743074

30753075
encoded_path_in_repo = "/" + quote(path_in_repo, safe="") if path_in_repo else ""
3076-
tree_url = f"{self.endpoint}/api/{repo_type}s/{repo_id}/tree/{revision}/{encoded_path_in_repo}"
3076+
tree_url = f"{self.endpoint}/api/{repo_type}s/{repo_id}/tree/{revision}{encoded_path_in_repo}"
30773077
for path_info in paginate(path=tree_url, headers=headers, params={"recursive": recursive, "expand": expand}):
30783078
yield (RepoFile(**path_info) if path_info["type"] == "file" else RepoFolder(**path_info))
30793079

0 commit comments

Comments
 (0)