# Naming Sub Directory

**URL:** https://community.mp3tag.de/t/naming-sub-directory/48062
**Category:** Support
**Created:** [March 3, 2020, 7:04am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062 "2020-03-03T07:04:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Smudger](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@Smudger](https://community.mp3tag.de/u/Smudger)
#### Post date: [March 3, 2020, 7:04am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/1 "2020-03-03T07:04:53Z")

</div>

Morning All

I do know that you can name a directory using the \_DIRECTORY %album% which is great, but is there please a way that I can create the main directory of the album artist name and then create a subdirectory within that directory of the album name

thanks in advance

Steve

---

<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: [March 3, 2020, 7:07am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/2 "2020-03-03T07:07:45Z")

</div>

See the FAQs:

> [@Converters to rename files or to import tags](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/2):
>
> How to rename files based on tags? Renaming files, creating folders and complete directory structures from tags can be done by using the [:mt\_ttf:] Converter \> Tag - Filename with a format string. A format string is used to describe the structure of the desired filename. Besides using normal placeholders (such as %artist%, %title%, ...) and arbitrary text (e.g., Music) it also allows for separating folders with the backslash \ character. Here is an example that renames the file based on the t…

---

<div class="post-metadata">

### Author: ![Smudger](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@Smudger](https://community.mp3tag.de/u/Smudger)
#### Post date: [March 3, 2020, 7:11am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/3 "2020-03-03T07:11:47Z")

</div>

thank you for that ohrenkino but please could you give me an example of my request

album artist / album / track# - title

thanks in advance

---

<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: [March 3, 2020, 7:19am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/4 "2020-03-03T07:19:10Z")

</div>

It depends a little on how your current structure looks like.  
Scenario 1: you already have all the files in separate folders but you want to rename those particular folders so that further data is added (even another layer of folders).  
Then use "Format value" for \_DIRECTORY with an absolute path like  
Format string: `d:\mymusic\%albumartist%\%album%`  
Please note that this action does not include the filename part.  
The current folder will be renamed and takes all files in it to the new location. No empty folders will remain.

Scenario 2: you still have to distribute all the files to separate folders plus rename the files.  
In this case use Format value for \_FILENAME  
Format string: `d:\mymusic\%albumartist%\%album%\$num(%track%,2) _ %title%`  
This will move all the selected files to the specified folder. The old folder stays where it is, even if it is empty now.

---

<div class="post-metadata">

### Author: ![Smudger](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@Smudger](https://community.mp3tag.de/u/Smudger)
#### Post date: [March 3, 2020, 7:25am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/5 "2020-03-03T07:25:06Z")

</div>

thank you that is a huge help many thanks

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [March 3, 2020, 9:34am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/6 "2020-03-03T09:34:02Z")

</div>

> [@ohrenkino](#):
>
> No empty folders will remain.

Not the whole truth.  
Parent- and grandparent-directories and great-grandparents-directories and ...will remain even if they are empty after the action.  
But this is not a big problem. I usually clean up after a working-session with a tool in one-go.

---

<div class="post-metadata">

### Author: ![Smudger](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@Smudger](https://community.mp3tag.de/u/Smudger)
#### Post date: [March 3, 2020, 11:11am UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/7 "2020-03-03T11:11:19Z")

</div>

What tool would that be poster?

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [March 3, 2020, 1:24pm UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/8 "2020-03-03T13:24:12Z")

</div>

i.e

> **[7 Tools To Find And Delete Empty Folders in Windows • Raymond.CC](https://www.raymond.cc/blog/easily-removing-empty-directories-from-windows/)**
>
> There are easily thousands of empty and redundant folders created by Windows and third party software that are no longer being used. Here are 7 ways you can easily search and safely delete folders that don't contain any files.

---

<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: [April 2, 2020, 1:24pm UTC](https://community.mp3tag.de/t/naming-sub-directory/48062/9 "2020-04-02T13:24:14Z")

</div>

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