Author Topic: Search in subfolders that have a specific name/pattern  (Read 214 times)

jp

  • Newbie
  • *
  • Posts: 2
    • View Profile
Search in subfolders that have a specific name/pattern
« on: July 30, 2025, 15:54:37 »
Hi,

Let's say we have a tree structure like that :
/ROOT
├── A
│   ├── 1
│   │   └── not_te_be_selected.json
│   └── 2
├── B
│   ├── 1
│   └── 2
└── C
    ├── 1
    ├── GOOD_SUBFOLDER
    │   └── to_be_selected.json
    └── 2


I'm looking for a way to search *.json files from ROOT folder, but only in subfolders that also match a pattern :
*\GOOD_*\*.json

That would return only
ROOT\C\GOOD_SUBFOLDER\to_be_selected.json

Is that somehow possible?

Regards,
Julien
« Last Edit: July 30, 2025, 15:59:26 by jp »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4718
    • View Profile
    • Multi Commander
Re: Search in subfolders that have a specific name/pattern
« Reply #1 on: July 30, 2025, 16:08:18 »
Maybe
In advanced search. You can add rules for Extended Properties.
And "Path" is a property. And you can add a Rule there for wildcard matching of the path "*/GOOD_*
And then you have *.json as the normal filename matching

jp

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Search in subfolders that have a specific name/pattern
« Reply #2 on: July 30, 2025, 16:29:18 »
That's it! Nice :)

It would be convenient to have RegExp/Wildcard working on the the full file path. Maybe by adding "Full file path" to the "Include" drop-down menu in the "File Matching" tab (attachement)?

Anyway, thanks for the answer.

Julien