# Filter to list files where folderpath matches the artist

**URL:** <https://community.mp3tag.de/t/filter-to-list-files-where-folderpath-matches-the-artist/47973>\
**Category:** Support\
**Created:** [February 24, 2020, 5:20pm UTC](https://community.mp3tag.de/t/filter-to-list-files-where-folderpath-matches-the-artist/47973 "2020-02-24T17:20:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasMeister](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@ThomasMeister](https://community.mp3tag.de/u/ThomasMeister)\
**Post date:** [February 24, 2020, 5:20pm UTC](https://community.mp3tag.de/t/filter-to-list-files-where-folderpath-matches-the-artist/47973/1 "2020-02-24T17:20:16Z")

</div>

Why this filter dont work with "%artist%"? Where is the mistake?

 ![01](https://community.mp3tag.de/uploads/default/original/2X/4/46ca7bf0f890f51785888d5bac6d40149d6e6dee.png)

 ![02](https://community.mp3tag.de/uploads/default/original/2X/f/f3453e4b4fdac8e0a01db63eb685b2f3e0f43559.png)

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 24, 2020, 6:01pm UTC](https://community.mp3tag.de/t/filter-to-list-files-where-folderpath-matches-the-artist/47973/2 "2020-02-24T18:01:50Z")

</div>

That is so by design. on the right side of the filter operator must be a string constant, not a string variable.  
So if you want to find files where the string from ARTIST ist part of the folderpath, use  
`NOT "$strstr(%_folderpath%,%artist%)" IS "0"`

---

<div class="post-metadata">

**Author:** ![ThomasMeister](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@ThomasMeister](https://community.mp3tag.de/u/ThomasMeister)\
**Post date:** [February 24, 2020, 6:08pm UTC](https://community.mp3tag.de/t/filter-to-list-files-where-folderpath-matches-the-artist/47973/3 "2020-02-24T18:08:53Z")

</div>

> [@ohrenkino](#):
>
> NOT "$strstr(%\_folderpath%,%artist%)" IS "0"

Thank you. Thats it 😉

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [March 25, 2020, 6:08pm UTC](https://community.mp3tag.de/t/filter-to-list-files-where-folderpath-matches-the-artist/47973/4 "2020-03-25T18:08:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
