How to include folder with folder\* ?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

How to include folder with folder\* ?

Post by anmac1789 »

Hello, the following command

Code: Select all

"A:\sdcard\Android\*"
views the immediate files/folders directly under Android\ without subfolders or files...

Screenshot 2023-12-27 191201.jpg
Screenshot 2023-12-27 191201.jpg (56.77 KiB) Viewed 1622 times

but How do I also include the Android folder itself so that Android\ , data\ , media\ , obb\ and obj\ folders are shown as well ? ?
void
Developer
Posts: 16739
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to include folder with folder\* ?

Post by void »

To include subfolders, please try the following search:

Code: Select all

A:\sdcard\Android\**
* = match any character (except \) any number of times.
** = match any character any number of times.



To match any character any number of times with a single *
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    wild
  • Select wildcards_star_all.
  • Set the value to: true
  • Click OK.
wildcards_star_all
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: How to include folder with folder\* ?

Post by anmac1789 »

void wrote: Thu Dec 28, 2023 12:16 am To include subfolders, please try the following search:

Code: Select all

A:\sdcard\Android\**
* = match any character (except \) any number of times.
** = match any character any number of times.



To match any character any number of times with a single *
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    wild
  • Select wildcards_star_all.
  • Set the value to: true
  • Click OK.
wildcards_star_all
This still doesnt show the Android folder along with 4 other folders only. Instead, all of the files and folders underneath the data\ folder are shown.
Screenshot 2023-12-27 192519.jpg
Screenshot 2023-12-27 192519.jpg (568.68 KiB) Viewed 1615 times
Screenshot 2023-12-27 192537.jpg
Screenshot 2023-12-27 192537.jpg (564.25 KiB) Viewed 1615 times
void
Developer
Posts: 16739
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to include folder with folder\* ?

Post by void »

A:\sdcard\Android

However, this will match A:\sdcard\Android2



pathlist:A:\sdcard\Android

wholefilename:A:\sdcard\Android | A:\sdcard\Android\**

regex:^A:\\sdcard\\Android(\\|$)

pathlist:
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: How to include folder with folder\* ?

Post by anmac1789 »

void wrote: Thu Dec 28, 2023 12:31 am A:\sdcard\Android

However, this will match A:\sdcard\Android2
What do you mean by this ?

void wrote: Thu Dec 28, 2023 12:31 am pathlist:A:\sdcard\Android

wholefilename:A:\sdcard\Android | A:\sdcard\Android\**

regex:^A:\\sdcard\\Android(\\|$)

pathlist:
basically if I search for A:\sdcard\Android this searches for all files and subfolders and displays the Android\ folder itself. If I search for A:\sdcard\Android\* then this displays all subfolders under Android\* but it excludes the Android\ folder itself and also excludes all other deeper nested subfolder and files. What I am requesting is a mix of either case; to show the Android\ folder itself and including the subfolders directly under Android\ excluding all files and deeper nested subfolders
void
Developer
Posts: 16739
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to include folder with folder\* ?

Post by void »

A:\sdcard\Android

matches:

A:\sdcard\Android2



Please try the following searches:

A:\sdcard\Android\*|A:\sdcard\Android\*\*
(doesn't list the root android folder)

pathlist:A:\sdcard\Android depth:<=4
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to include folder with folder\* ?

Post by NotNull »

anmac1789 wrote: Thu Dec 28, 2023 12:38 am What I am requesting is a mix of either case; to show the Android\ folder itself and including the subfolders directly under Android\ excluding all files and deeper nested subfolders

Code: Select all

folder:   wfn:A:\sdcard\Android | A:\sdcard\Android\*
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: How to include folder with folder\* ?

Post by anmac1789 »

NotNull wrote: Thu Dec 28, 2023 2:15 pm
anmac1789 wrote: Thu Dec 28, 2023 12:38 am What I am requesting is a mix of either case; to show the Android\ folder itself and including the subfolders directly under Android\ excluding all files and deeper nested subfolders

Code: Select all

folder:   wfn:A:\sdcard\Android | A:\sdcard\Android\*
That seems to work is there a way to turn this into a filter so that any path I use will have this kind of format ?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to include folder with folder\* ?

Post by NotNull »

Configure the filter as follows:

Code: Select all

Name = Direct folders
Search = folder:   wfn:$param: | $param:\*
Macro = directfolder

Test:

Code: Select all

directfolder:a:\sdcard\android
Change directfolder to a name of your liking.
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: How to include folder with folder\* ?

Post by anmac1789 »

NotNull wrote: Thu Dec 28, 2023 10:04 pm Configure the filter as follows:

Code: Select all

Name = Direct folders
Search = folder:   wfn:$param: | $param:\*
Macro = directfolder

Test:

Code: Select all

directfolder:a:\sdcard\android
Change directfolder to a name of your liking.

Thank you this works as described
Post Reply