wildcard with container-filenames

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

wildcard with container-filenames

Post by anmac1789 »

Hello, how can I search for archives such as this ? container-filenames:"20180707_??????.mp4"
void
Developer
Posts: 16776
Joined: Fri Oct 16, 2009 11:31 pm

Re: wildcard with container-filenames

Post by void »

1.5.0.1358a:

multistring:wildcards:container-filenames:"20180707_??????.mp4"

1.5.0.1359a+ (next version):

container-filenames:"20180707_??????.mp4"



multistring:
wildcards:
anmac1789
Posts: 670
Joined: Mon Aug 24, 2020 1:16 pm

Re: wildcard with container-filenames

Post by anmac1789 »

void wrote: Wed Oct 25, 2023 10:58 pm 1.5.0.1358a:

multistring:wildcards:container-filenames:"20180707_??????.mp4"

1.5.0.1359a+ (next version):

container-filenames:"20180707_??????.mp4"



multistring:
wildcards:
Somehow this didn't produce any results
void
Developer
Posts: 16776
Joined: Fri Oct 16, 2009 11:31 pm

Re: wildcard with container-filenames

Post by void »

You will also need to match any paths.

Please try the following search:

multistring:wildcards:container-filenames:"**/20180707_??????.mp4"
-or-
nowholefilename:multistring:wildcards:container-filenames:"20180707_??????.mp4"



You won't need the **/ prefix in the next alpha update.
anmac1789
Posts: 670
Joined: Mon Aug 24, 2020 1:16 pm

Re: wildcard with container-filenames

Post by anmac1789 »

void wrote: Thu Oct 26, 2023 6:12 am You will also need to match any paths.
Do you mean by checking Search --> Match Path ??
void wrote: Thu Oct 26, 2023 6:12 am Please try the following search:

multistring:wildcards:container-filenames:"**/20180707_??????.mp4"
What does the **/ do ?
void wrote: Thu Oct 26, 2023 6:12 am nowholefilename:multistring:wildcards:container-filenames:"20180707_??????.mp4"

You won't need the **/ prefix in the next alpha update.
nowholefilename:multistring:wildcards:container-filenames:

this seems a bit complicated, I'm assuming this matches partial filenames that have the wildcard characters ?
void
Developer
Posts: 16776
Joined: Fri Oct 16, 2009 11:31 pm

Re: wildcard with container-filenames

Post by void »

Do you mean by checking Search --> Match Path ??
No, the filenames inside containers are full paths and names.

For example:

folderA/folderB/20180707_012345.mp4

zip, 7z and others use / as a path separator.


What does the **/ do ?
Using a wildcard matches the whole filename (globbing)
**/ Matches the path part.

For example:

Code: Select all

folderA/folderB/20180707_012345.mp4
\_____________/|\_______/\____/\__/
       |       |    |      |    |
      **       /20180707_??????.mp4
I'm assuming this matches partial filenames that have the wildcard characters
Correct.
You can use the nowholefilename: search modifier to match wildcards anywhere in the filename.



The next alpha update will do a "whole subpath" match when using wildcards with container-filename:
(The normal search uses "whole subpath" wildcards by default).

"whole subpath" wildcards will match the whole filename, then the next sub path, then the next sub path and so on.
For example:

20180707_??????.mp4 will first check against:
folderA/folderB/20180707_012345.mp4
then:
folderB/20180707_012345.mp4
and finally:
20180707_012345.mp4

This should give you the expected results with just a container-filenames:"20180707_??????.mp4" search.
void
Developer
Posts: 16776
Joined: Fri Oct 16, 2009 11:31 pm

Re: wildcard with container-filenames

Post by void »

Everything 1.5.0.1359a removes the need for multistring:

Everything will now automatically use multistring: on properties that have multiple values.



container-filename: is now flagged to accept filename wildcards.



The following will now work as expected:

container-filename:20180707_??????.mp4
Post Reply