Skip to content

Commit 5b1a914

Browse files
authored
hffs minor fix (#3449)
1 parent 5e77e04 commit 5b1a914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/hf_file_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def _ls_tree(
445445
common_path_depth = common_path[len(path) :].count("/")
446446
maxdepth -= common_path_depth
447447
out = [o for o in out if not o["name"].startswith(common_path + "/")]
448-
for cached_path in self.dircache:
448+
for cached_path in list(self.dircache):
449449
if cached_path.startswith(common_path + "/"):
450450
self.dircache.pop(cached_path, None)
451451
self.dircache.pop(common_path, None)

0 commit comments

Comments
 (0)