This fails for me. I can only select files. No way to select the directory without opening it up. The question was how to select a file, or a directory. This only selects files.