If dirs_only is true, this will only complete directory
names, and not file names.
This function needs to be called before waiting for results from the completer to be populated.
| this |
the filename completer. |
| dirs_only |
a bool. |