When a validate function is provided, it would be useful to only display valid choices in the file tree. For instance, if you only want to have the user select files of a specific file extension, then removing all invalid files from the tree (and any folders that don't contain valid files) could make for a significantly better user experience when the file tree structure is large and/or deeply nested.
I'll submit a pull request which addresses this issue.
When a
validate
function is provided, it would be useful to only display valid choices in the file tree. For instance, if you only want to have the user select files of a specific file extension, then removing all invalid files from the tree (and any folders that don't contain valid files) could make for a significantly better user experience when the file tree structure is large and/or deeply nested.I'll submit a pull request which addresses this issue.