Skip to content

Commit

Permalink
Fixed an issue where files could not be filed (#6754)
Browse files Browse the repository at this point in the history
* Fixed an issue where files could not be filed

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
duolabmeng6 and gradio-pr-bot committed Dec 11, 2023
1 parent 3240d04 commit a1b966e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-socks-enter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Fixed an issue where files could not be filed
2 changes: 1 addition & 1 deletion gradio/components/file_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def make_node(parts, tree):
ignore_files = []
if self.ignore_glob:
for result in expand_braces(self.ignore_glob):
ignore_files += list(Path(self.ignore_glob).resolve().glob(result))
ignore_files += list(Path(self.root).resolve().glob(result))
files = list(set(files) - set(ignore_files))

tree = make_tree([str(f.relative_to(self.root)) for f in files])
Expand Down

0 comments on commit a1b966e

Please sign in to comment.