-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gr.FileExplorer does not update view when root_dir does not change. #7788
Comments
I also encountered the same problem. Is there any solution now? |
I to have this problem on a more recent version ( |
+1 here. my work around is to temporarily change the root dir and back:
|
Can we periodically trigger this |
I have encountered a similar problem. Adding a refresh button but not actually updating gr.FileExplorer. |
Describe the bug
When auto updating a gr.FileExplorer component using
gr.Blocks().load(every=1)
the file tree does not update when a file is created. The file tree does only update when theroot_dir
variable changes.As an example:
If I have gr.FileExplorer open in a folder it will show all files, however when i manually create a new file this file it not shown.
The file will only be shown if I change the
root_dir
to a new path and then back again to the old path.This is shown in the code example below. (remember to create a new file in the first 10 seconds)
Expected behaviour:
The file tree will update each second to include any new files.
References
this was supposedly fixed in #6096 however it does not work.
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: