# Renaming creates subdirectories in only one parent

**URL:** https://community.mp3tag.de/t/renaming-creates-subdirectories-in-only-one-parent/1502
**Category:** Development
**Created:** [December 6, 2004, 8:58am UTC](https://community.mp3tag.de/t/renaming-creates-subdirectories-in-only-one-parent/1502 "2004-12-06T08:58:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rijkstra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rijkstra/32/22_2.png) [@Rijkstra](https://community.mp3tag.de/u/Rijkstra)
#### Post date: [December 6, 2004, 8:58am UTC](https://community.mp3tag.de/t/renaming-creates-subdirectories-in-only-one-parent/1502/1 "2004-12-06T08:58:31Z")

</div>

There is a problem in renaming to subdirectories. It only works if a single directory is loaded. Otherwise all subdirectories are created under the directory in the directory list box--not under the one in the grid. Here I loaded Vivaldi first, then Grieg, but all results of renaming go to Vivaldi.

Using: %album%\%track% - %title%

"D:\Mp3\Share\0404\Edvard Grieg\Masters - 13 - Rigaudon.mp3" -\>  
"D:\Mp3\Share\0404\Antonio Vivaldi\Masters\13 - Rigaudon.mp3"

"D:\Mp3\Share\0404\Antonio Vivaldi\Quatre Saisons - 01 - Allegro - Le Printemps.mp3" -\>  
"D:\Mp3\Share\0404\Antonio Vivaldi\Quatre Saisons\01 - Le Printemps.mp3"

I'm not sure this problem has always been there. It may be related to the breaking of renaming to relative directories set out in my previous post. I actually noticed this bug after loading a large playlist--files in the same format, but scattered throughout my library. In the case of a playlist, it tries to rename to subdirectories of the playlist directory, definitely not a good thing.

---

<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: [December 6, 2004, 10:33am UTC](https://community.mp3tag.de/t/renaming-creates-subdirectories-in-only-one-parent/1502/2 "2004-12-06T10:33:28Z")

</div>

Please see my answer regarding working directories [here](https://community.mp3tag.de/t/1500/1). In this case you can use  
..\%artist%\%album%\%track% - %title%  
to prevent the problems.

Best regards,  
~ Florian
