# Merge folders into a new one

**URL:** <https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567>\
**Category:** Support\
**Created:** [July 8, 2020, 11:29am UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567 "2020-07-08T11:29:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev91618](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@dev91618](https://community.mp3tag.de/u/dev91618)\
**Post date:** [July 8, 2020, 11:29am UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567/1 "2020-07-08T11:29:59Z")

</div>

Hello all. Good day.  
1 Can I have files from directory1 and directory2 move to directory0  
2 Can this happen for all content, not just media files, i.e. such as cover art jpgs pngs, lyrics files and others if any (nfo, txt, etc)?  
3 Can this happen with relative paths preferably?  
Thanks a lot 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:** [July 8, 2020, 11:34am UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567/2 "2020-07-08T11:34:44Z")

</div>

Use Convert\>Tag-Tag or an action of the type "Format value" for \_directory (you may have to type it in the field box).  
Type in as  
Format string:  
the path to the target directory. You have to decide whether a relative path is enough or an absolute path would be safer.  
As you rename the directory, every file that is in this directory is also moved to the new location.

---

<div class="post-metadata">

**Author:** ![dev91618](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@dev91618](https://community.mp3tag.de/u/dev91618)\
**Post date:** [July 15, 2020, 8:09am UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567/3 "2020-07-15T08:09:24Z")

</div>

Wow. This moves the png files also. Thanks.

---

<div class="post-metadata">

**Author:** ![dev91618](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@dev91618](https://community.mp3tag.de/u/dev91618)\
**Post date:** [July 15, 2020, 11:56am UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567/4 "2020-07-15T11:56:17Z")

</div>

Somehow it doesn't like it when I add $validate in front of the resulting directory name. Is that your experience also?

---

<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:** [July 15, 2020, 12:25pm UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567/5 "2020-07-15T12:25:38Z")

</div>

No.  
$validate() usually leads to valid filenames.  
So an example that fails would be nice.

---

<div class="post-metadata">

**Author:** ![dev91618](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@dev91618](https://community.mp3tag.de/u/dev91618)\
**Post date:** [July 16, 2020, 9:01pm UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567/6 "2020-07-16T21:01:58Z")

</div>

My bad entirely, $validate(expression,replacement) works perfectly.

---

<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:** [August 15, 2020, 9:02pm UTC](https://community.mp3tag.de/t/merge-folders-into-a-new-one/49567/7 "2020-08-15T21:02:03Z")

</div>

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