- Added a new function to filter path choices based on specified file extensions.
- Updated to accept a parameter and apply filtering accordingly.
- Enhanced tests to cover various scenarios for fileTypes filtering, including case sensitivity and compound extensions.
- Ensured that directories are always included in the results, while files without extensions are excluded when fileTypes are specified.
This improves the usability of path selection by allowing users to filter files based on their types.