# One file per directory in Export doesn't work

**URL:** <https://community.mp3tag.de/t/one-file-per-directory-in-export-doesnt-work/14794>\
**Category:** Support\
**Created:** [June 10, 2013, 12:30am UTC](https://community.mp3tag.de/t/one-file-per-directory-in-export-doesnt-work/14794 "2013-06-10T00:30:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MasterKaster](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@MasterKaster](https://community.mp3tag.de/u/MasterKaster)\
**Post date:** [June 10, 2013, 12:30am UTC](https://community.mp3tag.de/t/one-file-per-directory-in-export-doesnt-work/14794/1 "2013-06-10T00:30:18Z")

</div>

I tried this option on several directories.

Example, I have 2 directories:

- (2002) - A Album
- (2003) - B Album

1. I drag and drop the directories to mp3tag window
2. I select all songs
3. I click "Export" button on toolbar
4. I check "One file per directory"
5. I select a configuration and click "OK"

When I look into "(2002) - A Album", there is no file named "mp3tag.txt" but when I look into "(2003) - B Album", there is a file named "mp3tag.txt"

I tried this several times on different directories. Result is the same.  
I have version 2.55a.

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [June 10, 2013, 3:19am UTC](https://community.mp3tag.de/t/one-file-per-directory-in-export-doesnt-work/14794/2 "2013-06-10T03:19:15Z")

</div>

You should adjust the $filename() parameter in the config.  
Try  
$filename(%\_folderpath%mp3tag.txt)

---

<div class="post-metadata">

**Author:** ![MasterKaster](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@MasterKaster](https://community.mp3tag.de/u/MasterKaster)\
**Post date:** [June 10, 2013, 4:48am UTC](https://community.mp3tag.de/t/one-file-per-directory-in-export-doesnt-work/14794/3 "2013-06-10T04:48:00Z")

</div>

Thank you that worked, but I still don't know what "One file per directory" does ![:huh:](https://community.mp3tag.de/uploads/default/original/1X/f15ee73c0fd9ec3b0db7481f0558638f8ee224ce.gif ":huh:")

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [June 10, 2013, 6:49am UTC](https://community.mp3tag.de/t/one-file-per-directory-in-export-doesnt-work/14794/4 "2013-06-10T06:49:01Z")

</div>

It makes the export create one file per directory if $filename() is configured in an appropriate way.  
If you don't use that option you will always get just one export file.

---

<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:24pm UTC](https://community.mp3tag.de/t/one-file-per-directory-in-export-doesnt-work/14794/5 "2026-02-09T12:24:31Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


