# Directory creation using multiple artists

**URL:** <https://community.mp3tag.de/t/directory-creation-using-multiple-artists/61091>\
**Category:** Support\
**Created:** [May 27, 2023, 1:35pm UTC](https://community.mp3tag.de/t/directory-creation-using-multiple-artists/61091 "2023-05-27T13:35:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidGDFC](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@DavidGDFC](https://community.mp3tag.de/u/DavidGDFC)\
**Post date:** [May 27, 2023, 1:35pm UTC](https://community.mp3tag.de/t/directory-creation-using-multiple-artists/61091/1 "2023-05-27T13:35:39Z")

</div>

Hi,

In some of my albums, there are multiples artists and I've decided to properly tag them. I have two issues about this and I'm creating two separate threads.

When I'm done with all the tagging, I ran an action that allows me to rename the folder where my album is located: Format value DIRECTORY": %artist% - %album%.

My problem is that, if there are multiple artists, only the first one is used.

I'd be very happy if there was a way to use all the ARTIST tags where creating the name of the directory, so that my folder name looked like this:

artist 1 & artist 2 - album  
artist 1, artist 2 & artist 3 - album

The ampersand to separate the last and the second to last elements would be an appreciated bonus, but not strictly necessary.

Thank you for your help!

---

<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:** [May 27, 2023, 1:39pm UTC](https://community.mp3tag.de/t/directory-creation-using-multiple-artists/61091/2 "2023-05-27T13:39:35Z")

</div>

> [@DavidGDFC](#):
>
> DIRECTORY": %artist% - %album%.

Use  
`$regexp($meta_sep(artist,', '),'(.*), (.*)',$1 & $2) - %album%`

---

<div class="post-metadata">

**Author:** ![DavidGDFC](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@DavidGDFC](https://community.mp3tag.de/u/DavidGDFC)\
**Post date:** [May 27, 2023, 1:44pm UTC](https://community.mp3tag.de/t/directory-creation-using-multiple-artists/61091/3 "2023-05-27T13:44:16Z")

</div>

Thanks for this too! It's amazing to see what you can do with this programme when you know the language.

You've been very kind and also very quick to respond,@ohrenkino

---

<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:** [June 26, 2023, 1:44pm UTC](https://community.mp3tag.de/t/directory-creation-using-multiple-artists/61091/4 "2023-06-26T13:44:45Z")

</div>

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