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: Filter directory tree by file type?  (Read 13,912 times)

JennyB

  • Test all things - hold fast to what is good
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 212
Filter directory tree by file type?
« on: November 08, 2010, 01:33 AM »
You know how the Open File dialog can show only files matching a particular type? As soon as you go up the tree it displays all the directories and you have to open them to see if they contain anything relevant.

Is there any program that can take a file type and return a list of directories that contain files of that type?
If you don't see how it can fail -
you haven't understood it properly.

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
Re: Filter directory tree by file type?
« Reply #1 on: November 08, 2010, 02:29 AM »
TaskTracker

http://tasktracker.wordwisesolutions.com/

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Filter directory tree by file type?
« Reply #2 on: November 08, 2010, 03:14 AM »
TaskTracker

http://tasktracker.wordwisesolutions.com/

Is it freeware? I don't see any license or purchase info.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Filter directory tree by file type?
« Reply #3 on: November 08, 2010, 03:15 AM »
Nope: Registration

I'd just use Everything and type in the path and/or filter.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903
« Last Edit: November 08, 2010, 03:18 AM by 4wd »

hpearce

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 139
Re: Filter directory tree by file type?
« Reply #4 on: November 08, 2010, 12:56 PM »
some file managers have a display view called FLAT VIEW that will display all folders and files in one lister like DOPUS.
Windows 7 SP1 (TM) Home Premium 64-bit .. Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26 GHz / 2.27 GHz .. 4GB RAM .. NVIDIA GeForce 9800M GTS .. Gateway P-7805u FX

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: Filter directory tree by file type?
« Reply #5 on: November 08, 2010, 06:03 PM »
some file managers have a display view called FLAT VIEW that will display all folders and files in one lister like DOPUS.

in dopus you can also filter the list to only show certain filetypes (or names)
Tom

sajman99

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 664
Re: Filter directory tree by file type?
« Reply #6 on: November 08, 2010, 07:46 PM »
In addition to search tools and file mangers, some system profilers could help out.

For example, WinDirStat displays file types. I know there are many more I'm not recalling at the moment.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: Filter directory tree by file type?
« Reply #7 on: November 08, 2010, 08:28 PM »
FreeCommander has a filter but it's only for the current folder. It won't remove folders from the tree. I think the reason they don't is it's slow. FreeCommander has a Toolbar Icon to show folder sizes. It's off by default because recursively descending through the folder tree is slow. Essentially you are doing a FindFirstFile..FindNextFile processing of every file on the drive.  On the system partition that's easily several hundred thousand files.

Just open a command prompt to C:> and do
dir /s

command and watch it go on for minutes.

edit: just for chuckles I ran it on my Vista64 machine.  Took about 3 min 24 sec and listed over 215,000 files.


Might be a nice idea for a tool that does indexing though. Especially if the tree didn't get changed that often.  Like some data storage without a lot of deletions.
« Last Edit: November 08, 2010, 08:45 PM by MilesAhead »

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
Re: Filter directory tree by file type?
« Reply #8 on: November 08, 2010, 08:56 PM »
TaskTracker

http://tasktracker.wordwisesolutions.com/

Is it freeware? I don't see any license or purchase info.
No, it's $30.  At least I think that's what the cost is after clicking 5 or so links.

I used TaskTracker for several years and it worked well and served a real purpose for me.  Things changed and I didn't move it to my new machine.  I don't think I paid anywhere near $30 for it.  If I needed it again I'd look for a cheaper way first.

It doesn't work inside the Open/Save dialogs, but it does group file types across your directory tree.  It does that well.

JennyB

  • Test all things - hold fast to what is good
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 212
Re: Filter directory tree by file type?
« Reply #9 on: November 09, 2010, 01:36 PM »
Nope: Registration

I'd just use Everything and type in the path and/or filter.

That's FAST!!!  :o And it will do for what I need. Thanks!  :Thmbsup:
If you don't see how it can fail -
you haven't understood it properly.

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Filter directory tree by file type?
« Reply #10 on: November 10, 2010, 05:06 AM »
That's FAST!!!  :o And it will do for what I need. Thanks!  :Thmbsup:

No problem, there's a later version that's beta on the forum here, (it's been out a year and has been stable here), which adds a few things, (eg. recent change filters, better Safe Removal support, etc).

If you enable the Shell context menu, then it will restrict itself to the chosen path including sub-directories without you having to type them in.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: Filter directory tree by file type?
« Reply #11 on: November 12, 2010, 01:35 PM »
Is there any program that can take a file type and return a list of directories that contain files of that type?

Except for all the special programs already mentioned, I will like to remind you that Explorer does this per default. Just type .TheFiletype in Explorer's search box, when you are in a top directory, and the result will include all relevant files in every sub-folder in that directory. The speed of the result depends on whether you have indexing turned on or off.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: Filter directory tree by file type?
« Reply #12 on: November 12, 2010, 07:59 PM »
Is there any program that can take a file type and return a list of directories that contain files of that type?

Except for all the special programs already mentioned, I will like to remind you that Explorer does this per default. Just type .TheFiletype in Explorer's search box, when you are in a top directory, and the result will include all relevant files in every sub-folder in that directory. The speed of the result depends on whether you have indexing turned on or off.

I never thought to try that.  Here's a weirdy though. I typed in .txt in the Address Bar by mistake and it opened a tab in Chromium telling me it could not find the web site!!!  heh heh heh

When I used the search with .txt it found the text files though. :)

DonL

  • Member
  • Joined in 2006
  • **
  • Posts: 171
Re: Filter directory tree by file type?
« Reply #13 on: November 20, 2011, 07:24 PM »
XYplorer 10.60 will come with a Flat View that can be filtered (wildcards patterns, Boolean logic, RegExp), level-indented, and sorted in a tree-like sort order. In other words, it comes with a directory tree filtered by file type. That's why I revived this old topic. :)

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