Only files OR (empty) folders in search results

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
kodepr
Junior Member
Junior Member
Posts: 47
Joined: 2019-09-05, 08:13 UTC

Only files OR (empty) folders in search results

Post by *kodepr »

Hello,

I'm looking for a way to define some specific searches:
- a search where no folders but only files are listed as search results?
- the exact opposite: a search where no files but only folders are listed as search results?
- only empty folders are listed as search results?

Thanks in advance for your help.
User avatar
Dalai
Power Member
Power Member
Posts: 10022
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Only files OR (empty) folders in search results

Post by *Dalai »

kodepr wrote: 2022-02-18, 16:24 UTC- a search where no folders but only files are listed as search results?
In TC's search window, tab Advanced, set Attributes and disable [ ] Directory. Leave the other attributes as is.
- the exact opposite: a search where no files but only folders are listed as search results?
Same as above, only enable [X] Directory.
- only empty folders are listed as search results?
You need a content plugin for that, like DirSizeCalc or FileX. After installing either of them, use the Plugins tab and set

Code: Select all

FileX | EmptyDir | = | Yes
or

Code: Select all

DirSizeCalc | Empty | = | Yes
or

Code: Select all

DirSizeCalc | Contains Files | = | No
DirSizeCalc | Contains Subdirectories | = | No
Tip: Searches can be saved and loaded again on the Load/Save tab of TC's search window.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Only files OR (empty) folders in search results

Post by *Horst.Epp »

All of your request can be made with very simple Everything commands in TC search.

Only folders:
ev:folder:your_search

Only files:
ev:files:your_search

Only empty folder:
ev:folder:empty:your_search
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Post Reply