# Problem: Tag \> Filename results in nested directories

**URL:** https://community.mp3tag.de/t/problem-tag-filename-results-in-nested-directories/59940
**Category:** Mac
**Created:** [February 3, 2023, 6:23pm UTC](https://community.mp3tag.de/t/problem-tag-filename-results-in-nested-directories/59940 "2023-02-03T18:23:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Amari](https://community.mp3tag.de/user_avatar/community.mp3tag.de/amari/32/13228_2.png) [@Amari](https://community.mp3tag.de/u/Amari)
#### Post date: [February 3, 2023, 6:23pm UTC](https://community.mp3tag.de/t/problem-tag-filename-results-in-nested-directories/59940/1 "2023-02-03T18:23:40Z")

</div>

Hey, I am testing mp3tag for MacOS and having some trouble renaming my music.

I use the following Formatstring to rename my files:

> %albumartist%/%ALBUM%/$num(%track%,2). %ALBUMARTIST% - %TITLE%

Unfortunatly when the file is renamed it keeps the base path, which results in nested directories when executed. I run it more than once, which looks like this:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/6/674d036e14b7cfcf5db95b01847f70f50ad3e121.png)

How can I fix this?

PS: Is there a way to keep my folder.jpg when moving files?

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [February 3, 2023, 7:01pm UTC](https://community.mp3tag.de/t/problem-tag-filename-results-in-nested-directories/59940/2 "2023-02-03T19:01:14Z")

</div>

If you want it to start from within a specific drive/folder, you need to identify that in front of your current format string. Otherwise it will start from the current path.

---

<div class="post-metadata">

### Author: ![Amari](https://community.mp3tag.de/user_avatar/community.mp3tag.de/amari/32/13228_2.png) [@Amari](https://community.mp3tag.de/u/Amari)
#### Post date: [February 3, 2023, 8:10pm UTC](https://community.mp3tag.de/t/problem-tag-filename-results-in-nested-directories/59940/3 "2023-02-03T20:10:55Z")

</div>

Thanks, I was somehow looking for a hidden setting or checkbox. This worked 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: [March 5, 2023, 8:11pm UTC](https://community.mp3tag.de/t/problem-tag-filename-results-in-nested-directories/59940/4 "2023-03-05T20:11:14Z")

</div>

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