# Listing all subdirectories folders only

**URL:** https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302
**Category:** Support
**Created:** [February 13, 2022, 4:14pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302 "2022-02-13T16:14:09Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [February 13, 2022, 4:14pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/1 "2022-02-13T16:14:09Z")

</div>

Hi,  
i'm trying to only list my subdiriectory folder names only but i'm having trouble finding and answer in the forums. i don't know what action is need to list all my subdirectories. i would be grateful to you all with help on this,  
Thanks in advance 🙂

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 13, 2022, 4:18pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/2 "2022-02-13T16:18:15Z")

</div>

Mp3tag is only listing files in those folders (if the "Subdirectories" checkbox is enabled at _File → Change directory_). Folder names are not listed in Mp3tag, but are part of the _Path_ column in the file list.

---

<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: [February 13, 2022, 4:20pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/3 "2022-02-13T16:20:33Z")

</div>

> [@dp19](#):
>
> i don't know what action is need to list all my subdirectories

Where do you want to list those directories?  
Do you want to create an export?

---

<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: [February 13, 2022, 4:23pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/4 "2022-02-13T16:23:51Z")

</div>

> [@dp19](#):
>
> only list my subdiriectory folder names only

According to the Mp3tag [help](https://docs.mp3tag.de/customization/file-list), you can use this folder placeholders:

| filename | path info |
| --- | --- |
| %\_directory% | Name of the parent directory |
| %\_folderpath% | Path without file name |
| %\_path% | File name with path |
| %\_parent\_directory% | Name of the grandparent folder |

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [February 13, 2022, 4:36pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/5 "2022-02-13T16:36:39Z")

</div>

Thanks all for you replies, but i'm still confused. ohrenkino i'm trying to list them within mp3tag replacing the files with folders.

---

<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: [February 13, 2022, 4:41pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/6 "2022-02-13T16:41:04Z")

</div>

> [@dp19](#):
>
> within mp3tag replacing the files with folders.

you can add an new column or edit an existing one and enter one of the variables that got listed here:

> [@Listing all subdirectories folders only](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/4):
>
> According to the Mp3tag [help](https://docs.mp3tag.de/customization/file-list), you can use this folder placeholders: filename path info %\_directory% Name of the parent directory %\_folderpath% Path without file name %\_path% File name with path %\_parent\_directory% Name of the grandparent folder

For the column definition, set them as "Value", leave "Field" empty.

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [February 13, 2022, 6:44pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/7 "2022-02-13T18:44:24Z")

</div>

ok i'm guessing in order to change the directory name THE YOUNG RIVER The i need to do action\>folder value\>field %\_directory% field string\> %artist% The does this look correct and how can i remove the THE at the beginning of the directory?

---

<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: [February 13, 2022, 6:53pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/8 "2022-02-13T18:53:41Z")

</div>

To be sure if you use the correct format string, you could try it first with the menu Convert Tag -\> Filename. ("Filename" can include the path, not only the filename itself.)

There you see immediately - before you execute the command - what your format string would result in.

If you need some more help, please show us a [screenshot](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190#use-screenshots-to-exemplify-the-issue-2) from your selected details and how you would like the result.

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [February 13, 2022, 7:16pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/9 "2022-02-13T19:16:32Z")

</div>

ok so what you are saying if the filename is change then the directory name gets changed?

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [February 13, 2022, 7:47pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/10 "2022-02-13T19:47:10Z")

</div>

Thanks Folks I have it figure out.

---

<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: [February 13, 2022, 9:01pm UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/11 "2022-02-13T21:01:24Z")

</div>

> [@dp19](#):
>
> if the filename is change then the directory name gets changed

No, not really. If you only change the filename and not the partially or fully qualified filename, then the directory stays as it is.

To create folder structures from tags, 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: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [May 29, 2023, 7:47am UTC](https://community.mp3tag.de/t/listing-all-subdirectories-folders-only/56302/12 "2023-05-29T07:47:11Z")

</div>

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