In my opinion it should be an option per search path. Perhaps realized as a little checkbox (with describing text).
Another way would be to introduce a special character (e.g. / or \) to use in the file extensions restriction list but I guess this would be an exceptional case in the processing of that list (which is not good).
Example: pdf;txt;/;odt would display PDFs, TXTs, ODTs and directories.