DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Show directories even when using file extension restriction  (Read 5,852 times)

herojoker

  • Participant
  • Joined in 2008
  • *
  • Posts: 124
Show directories even when using file extension restriction
« on: September 02, 2008, 06:23 PM »
It would be nice if it were possible to show matching folders (in a specified search folder) even when file extension restrictions are used.

Example:
I want to find only files with the extension pdf, txt or odt in %MYDOCUMENTS% but also directories.

I tried pdf;txt;odt and pdf;txt;odt; and pdt;txt;odt;; and pdt;txt;odt; ; but none of them let the directories appear.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Show directories even when using file extension restriction
« Reply #1 on: September 02, 2008, 06:52 PM »
this certainly seems needed -- ill add some option for it.

herojoker

  • Participant
  • Joined in 2008
  • *
  • Posts: 124
Re: Show directories even when using file extension restriction
« Reply #2 on: September 02, 2008, 08:27 PM »
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.

Original address: https://www.donationcoder.com/forum/index.php?topic=14682.0