Selecting a folder vs file in open dialog

   1215   0   1
User Avatar
Member
1533 posts
Joined: July 2005
Offline
edit: This has been annoying me for quite some time. Over the years, I've worked around it in various (tedious, and ultimately unrewarding) ways.

I'm attempting to get a user to specify a path to a folder for image output (the tool will handle the actual file naming).

My testing directory structure is as follows (forgive the ascii awesomeness):


/– a
– tmp – tmp2 – b
\– c


I create a file param on a custom HDA, and navigate to /tmp.

- If I hit ‘accept’ after navigating to /tmp, the path returned from the dialog is /tmp/<random folder in /tmp>/. This is unexpected.
- if I navigate to /tmp/ and select the tmp2, I get /tmp/tmp2 (as expected)
- if I navigate into /tmp/tmp2, and hit accept I get /tmp/tmp2/<random folder in tmp2>. This is unexpected as above
- if I navigate to /tmp/tmp2/c I am unable to accept as there is no selection, as the dialog is expecting a file selection. This is also expected, but begs the question…

…What is the correct way for me to achieve this?

G
  • Quick Links