fileexists: with wildcards

Discussion related to "Everything" 1.5 Alpha.
Post Reply
flacky
Posts: 7
Joined: Tue Apr 06, 2021 8:23 am

fileexists: with wildcards

Post by flacky »

Here we find
regex:^D:\\media\\(.*)$ fileexists:E:\\Backup\\media\\\1 (find files on the D: drive, where a backup with the same sub path and filename exist on the E: drive)
But how can I find backups in unknown sub folders? This doesn't seem to work:

Code: Select all

regex:^D:\\media\\(.*)$ fileexists:E:\\Backup\\**\\media\\\1
Please, notice the "**".


Thanks for reading, flacky
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: fileexists: with wildcards

Post by void »

fileexists: doesn't support wildcards.

The path supplied to fileexists: must be absolute.

The following will list your E:\backup folders where it exists in D:\media
regex:^E:\\Backup\\.*\\media\\(.*)$ fileexists:D:\\media\\\1

This cannot be done the other way around (listing d:\media where multiple backups exists)



fileexists:
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: fileexists: with wildcards

Post by void »

An alternative to fileexists: is sizefilelist1:

Search for your backup folders:

"E:\Backup\**\media\*" folder:

Select all folders and press Ctrl + Shift + C to copy all the filenames to the clipboard.

Change your search to:
d:\media\* folder: sizefilelist1:

Hold down Ctrl and left click the sizefilelist1: text in the search box.
Paste your filenames (Ctrl + V)
Click OK.

Folders with the same size matching a backup are listed.
This will only work if there's an exact folder copy (folder sizes match)



Use the NOT operator: ! if you are looking for missing folders.
For example:
d:\media\* folder: !sizefilelist1:
Post Reply