Help with organizing my archive

Discussion related to "Everything" 1.5.
Post Reply
rookie
Posts: 2
Joined: Wed Mar 19, 2025 7:00 pm

Help with organizing my archive

Post by rookie »

Hello,
I'm trying to organize my archive. I'm using 1.5a. I want to search and find folders/files by these criterias:

1. Folders containing ONLY image files
I found a topic here related to this issue and modified the given code myself. Don't know if it's enough to find all types of image files.
topic:
viewtopic.php?t=15462
modified expression:
childfilecount: !child:<!*.jpg !*.jpeg !*.png !*.bmp !*.webp !*.gif !*.jpe>


2. Folders containing ONLY video files
3. Folders containing both images and videos but exclude results from 1 and 2.
4. Folders containing with given x number of image files
5. Folders containing with given x number of video files
(In advanced search, I can define number of files but can't define type of files)

These are things I'm trying to do for now. Sorry if they are too basic questions to ask here. Thank you in advance.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Help with organizing my archive

Post by NotNull »

rookie wrote: Wed Mar 19, 2025 7:36 pm I'm using 1.5a.
Moved to the Everything 1.5 alpha forum.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Help with organizing my archive

Post by NotNull »

1. Folders containing ONLY image files
Assuming ONLY image files means no subfolders:

Code: Select all

child:pic:  child-count:==child-occurrence-count: 

2. Folders containing ONLY video files

Code: Select all

child:video:  child-count:==child-occurrence-count: 

4. Folders containing with given x number of image files

Code: Select all

child:pic:  child-occurrence-count:>12 

5. Folders containing with given x number of video files

Code: Select all

child:video:  child-occurrence-count:=3 
rookie
Posts: 2
Joined: Wed Mar 19, 2025 7:00 pm

Re: Help with organizing my archive

Post by rookie »

Thank you very much
rookie
Posts: 2
Joined: Wed Mar 19, 2025 7:00 pm

Re: Help with organizing my archive

Post by rookie »

Can I ask my questions under this topic because I come across new issues while organizing my archive?
Let's say I have a file named abc_trim.* or trim-abc.* , and I also have abc.* which is complete file of the trim named file. I want to see both of these paired files at the search list. Underline character or extensions may differ from file to file so the example file names are not the exact pattern I'm trying to find. I only know "trim" is included in the file name.
To be more clear, I'm trying to see both [abc.*] and [abc named file which trim is also in the file name]
Last edited by rookie on Fri Mar 21, 2025 10:08 pm, edited 1 time in total.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Help with organizing my archive

Post by void »

To list abc and trim abc files (when both exist):

Code: Select all

"c:\media\"  <regex:(.*) sibling:$stem:_trim.*> | <regex:(.*) sibling:trim-$stem:.*> | <regex:^trim-(.*)$ sibling:$1:> | <regex:^(.*)_trim(.*)$ sibling:$1:$2:> addcol:1 sort:1
Change C:\media to your archive path.
Results are sorted without the trim part.

sibling:
Post Reply