__fish_complete_directories
Reviewing a PR for a completion script caused me to look at the implementation for the `__fish_complete_directories` function. Which in turn lead me to create this change to improve its implementation and add unit tests for the function.