# Renaming library folders when some albums have discs

**URL:** https://community.mp3tag.de/t/renaming-library-folders-when-some-albums-have-discs/58097
**Category:** Support
**Created:** [August 4, 2022, 4:31pm UTC](https://community.mp3tag.de/t/renaming-library-folders-when-some-albums-have-discs/58097 "2022-08-04T16:31:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![oryx.callotis](https://community.mp3tag.de/user_avatar/community.mp3tag.de/oryx.callotis/32/12001_2.png) [@oryx.callotis](https://community.mp3tag.de/u/oryx.callotis)
#### Post date: [August 4, 2022, 4:31pm UTC](https://community.mp3tag.de/t/renaming-library-folders-when-some-albums-have-discs/58097/1 "2022-08-04T16:31:29Z")

</div>

Hey, I've been trying to rename my whole music collection to clean it up a bit. If I select a folder, press alt+5 and change the \_DIRECTORY field to %year% - %album% then it works fine, if the album isn't multi-disc.

If the album has different discs, then it only renames 'disc 1' to the year and album instead of changing the folder name one level up.

Is there any way to get mp3tag to know which folder to rename in these nested folders?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 4, 2022, 5:01pm UTC](https://community.mp3tag.de/t/renaming-library-folders-when-some-albums-have-discs/58097/2 "2022-08-04T17:01:56Z")

</div>

Maybe this similar question and answer can help you to find the needed format string?

> [@How to rename my folder](https://community.mp3tag.de/t/how-to-rename-my-folder/16327/14):
>
> Thanks for replying. I am using: Format value "\_DIRECTORY": %Artist% - ALBUM - %year% - %album% This is before: (Album) [2015] Some Artist Name - Some Album (flac+cue+log) This is the desired outcome: Some Artist Name - ALBUM - 2015 - Some Album With this format, it is moving all the tracks into renamed folder where there are multiple CD's. So basically, it not just renaming the folder, it is doing processing within the folder. Please let me know if you need more information. Thanks

including the use of `[]` [brackets](https://docs.mp3tag.de/format/#characters-with-special-functionality):

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

---

<div class="post-metadata">

### Author: ![oryx.callotis](https://community.mp3tag.de/user_avatar/community.mp3tag.de/oryx.callotis/32/12001_2.png) [@oryx.callotis](https://community.mp3tag.de/u/oryx.callotis)
#### Post date: [August 5, 2022, 2:28am UTC](https://community.mp3tag.de/t/renaming-library-folders-when-some-albums-have-discs/58097/3 "2022-08-05T02:28:07Z")

</div>

It's not a bad try, but sadly a lot of my library has the %discnumber% field filled in, even if there aren't any other CD's (filled in as 1/1 or 1), so it'll try to do something on these folders too.

Also, this tends to just make a new folder, move only the music files, and leave the old folders behind along with cover art and scans, etc.

I'm not sure if mp3tag can really tell which folder is the name of the album that needs changing, and which folder is just "CD1"/"CD2"/"CD3" or "albums"/"live albums"/"singles"/"bonus content", etc. Would need something quite smart to know which is which I guess, as the folder that has the album name is anywhere between 1 to 4 layers deep in nested folders depending on the artist.

---

<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: [February 9, 2026, 12:29pm UTC](https://community.mp3tag.de/t/renaming-library-folders-when-some-albums-have-discs/58097/4 "2026-02-09T12:29:52Z")

</div>


