# Suggestion: Feature to add the final 2 subdirectories to IDTAGs

**URL:** https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313
**Category:** General Discussion
**Created:** [August 18, 2007, 1:18pm UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313 "2007-08-18T13:18:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Da\_maniaC](https://community.mp3tag.de/user_avatar/community.mp3tag.de/da_maniac/32/5156_2.png) [@Da\_maniaC](https://community.mp3tag.de/u/Da_maniaC)
#### Post date: [August 18, 2007, 1:18pm UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313/1 "2007-08-18T13:18:55Z")

</div>

Hello there,

Let me start off by saying how much i like this program! It works great and has helped me through a lot of nasty renaming issues.

I have a feature i would like to suggest though.  
It would be really nice if there would be a possiblity to add the name of the subdirectory a .mp3 file is in to the IDTAG to the spot of your liking. (something like a %folder% or %subdirectory% parameter would be very nice).  
The reason i would like this is, that i work with a lot of PC's and other devices that fully support the .M3U playlist format.  
The most used program to support this format for me is winamp however, which can not show the subdirectory in the playlist.  
Adding the subdirectory (or the final 2) directories to the IDTAG in the Artist field for example (next to the artist name) would be very convenient to keep a well organised playlist.  
The subdirectory or the final 2 subdirectories, files are in are usually the album name and sometimes even albumname/cd#/.  
It would be a very practical feature i think. 🙂

Please tell me what you think.

---

<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: [August 18, 2007, 3:38pm UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313/2 "2007-08-18T15:38:09Z")

</div>

You can use %\_parent\_directory% with action "Format value"  
Please see help file for more information.

---

<div class="post-metadata">

### Author: ![Da\_maniaC](https://community.mp3tag.de/user_avatar/community.mp3tag.de/da_maniac/32/5156_2.png) [@Da\_maniaC](https://community.mp3tag.de/u/Da_maniaC)
#### Post date: [August 18, 2007, 4:25pm UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313/3 "2007-08-18T16:25:15Z")

</div>

Ah, that feature is already in, that does look interesting. 🙂  
But! I ran into a problem when i changed the Tag format.

For example my files are in:  
C:\Music\Albums\Albumname$$$

I changed the format value, by changing the Artist field from:  
"%Artist%" to "%\_parent\_directory% %Artist%".

What happened was all the files in the folder got "Albums" in the tag field and not "Albumname".

Am i doing something wrong?

---

<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: [August 18, 2007, 4:50pm UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313/4 "2007-08-18T16:50:26Z")

</div>

Ok, for that use %\_directory%

[https://docs.mp3tag.de/format](https://docs.mp3tag.de/format)

---

<div class="post-metadata">

### Author: ![Da\_maniaC](https://community.mp3tag.de/user_avatar/community.mp3tag.de/da_maniac/32/5156_2.png) [@Da\_maniaC](https://community.mp3tag.de/u/Da_maniaC)
#### Post date: [August 18, 2007, 5:10pm UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313/5 "2007-08-18T17:10:54Z")

</div>

That did the trick. Thanks a million! 😃

This utility is bliss if you are a DJ with 25.000+ Music files! ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")

---

<div class="post-metadata">

### Author: ![Da\_maniaC](https://community.mp3tag.de/user_avatar/community.mp3tag.de/da_maniac/32/5156_2.png) [@Da\_maniaC](https://community.mp3tag.de/u/Da_maniaC)
#### Post date: [August 19, 2007, 11:45am UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313/6 "2007-08-19T11:45:08Z")

</div>

So i was well under way with the Adding of Actions and formatting field values etc.

But it seems as if i have come across a slight bug.

I Have set an action that wil change the %title% field format from just the "%title%" to the "%Artist% - %title%".

If i try to do the same however with the tracknumber these will not get added. (While the Track number field is fully filled out).

So i am trying to go from "%Title%" to "%Track% - %Title%" using the same action called Format Value.

Am i overlooking something or might this be a bug?

---

<div class="post-metadata">

### Author: ![Da\_maniaC](https://community.mp3tag.de/user_avatar/community.mp3tag.de/da_maniac/32/5156_2.png) [@Da\_maniaC](https://community.mp3tag.de/u/Da_maniaC)
#### Post date: [August 20, 2007, 9:56pm UTC](https://community.mp3tag.de/t/suggestion-feature-to-add-the-final-2-subdirectories-to-idtags/5313/7 "2007-08-20T21:56:55Z")

</div>

Hmmmm....

Strangely enough i tried to do this action again a day later and now it seemed to work flawlessly. 🙂

Figured, i'd just let you know.
