Setting the path_filter and show_files_listing, but list page still show all files. #3207
Labels
A-files
project: actix-files
C-improvement
Category: an improvement to existing functionality
good-first-issue
easy to pick up for newcomers
Expected Behavior
Only display the files that pass the filter, as in the example above, only the lib.rs file should be displayed.
Current Behavior
Display all files, but only those passed by the filter can be accessed.
Possible Solution
Add a filter parameter to the DirectoryRenderer function, or add a filter field to the Directory.
Steps to Reproduce (for bugs)
Context
When I set a filter, it indicates that I don't want users to be aware of the existence of certain files. However, these files are still displayed on the list page and are inaccessible, which can confuse users.
Your Environment
rustc -V
): rustc 1.76.0-nightly (1e9dda77b 2023-11-22)The text was updated successfully, but these errors were encountered: