mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
Fixed an issue where files could not be filed (#6754)
* Fixed an issue where files could not be filed * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
3240d042e9
commit
a1b966edf7
5
.changeset/slimy-socks-enter.md
Normal file
5
.changeset/slimy-socks-enter.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fixed an issue where files could not be filed
|
@ -197,7 +197,7 @@ class FileExplorer(Component):
|
||||
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])
|
||||
|
Loading…
Reference in New Issue
Block a user