How to search in full path a photo

Hi,
How can I search for a keyword in the full path of a photo?

Example: My photos are e.g. organised as follows:

/mnt/Martin/2002/Mattis/img_001.jpg
/mnt/Martin/2020/Mattis/img_512.jpg
/mnt/Susan/2009/Holidays/Corsica/Mattis_003.webp
/mnt/Martin/2025/Family/Mattis 2025/hfjeinjkljd894403908.mkv

How can I search for “Mattis” or “mattis” so that all 3 photos and the 1 mkv from above are displayed?

mattis or name:mattis matches all your examples when I test this on PhotoStructure for Desktop Windows. If you want to exclude searching other tags, searching just filepaths and filenames is done with fs:mattis or name:mattis.

I would have thought just mattis would get everything, but it’s not matching filenames for me.

For more details on searching, see: