# \[F\] Wrong path when renaming files

**URL:** https://community.mp3tag.de/t/f-wrong-path-when-renaming-files/18460
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [November 27, 2016, 8:56pm UTC](https://community.mp3tag.de/t/f-wrong-path-when-renaming-files/18460 "2016-11-27T20:56:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Timbosteron](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c0e974/32.png) [@Timbosteron](https://community.mp3tag.de/u/Timbosteron)
#### Post date: [November 27, 2016, 8:56pm UTC](https://community.mp3tag.de/t/f-wrong-path-when-renaming-files/18460/1 "2016-11-27T20:56:14Z")

</div>

When I rename a file using its tags (i.e. creating a folder called "artist" and a subfolder "album") MP3tag doesn't get it right sometimes (see the screenshot).

![](https://s21.postimg.org/oo4ow9lfr/rzxdjt.jpg)

So instead of drive R:... MP3tag puts the file in a subfolder \R...

I think the problem is the slash in the album-tag because a minute earlier it worked fine.

---

<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: [November 28, 2016, 5:36am UTC](https://community.mp3tag.de/t/f-wrong-path-when-renaming-files/18460/2 "2016-11-28T05:36:16Z")

</div>

> [@Timbosteron](#):
>
> When I rename a file using its tags (i.e. creating a folder called "artist" and a subfolder "album") MP3tag doesn't get it right sometimes (see the screenshot).
> 
> So instead of drive R:... MP3tag puts the file in a subfolder \R...
> 
> I think the problem is the slash in the album-tag because a minute earlier it worked fine.

I just tested it - and can partially confirm the bug (which looks like a variation of the 2.78a bug described here [[F] 2.78a: Konverter Tag-Dateiname mit \ führt zu falschem Pfad](https://community.mp3tag.de/t/18223/5)

The problem is the combination of path and variable with slash in the data being part of the path (and not just the filename).

If you leave out the variable in the path then MP3tag behaves as it should: no path repetition.

Also, if you treat the whole format string with a $validate()-function then the path comes out correct as well.

But I agree: it looks like a bug.

---

<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: [November 30, 2016, 2:06pm UTC](https://community.mp3tag.de/t/f-wrong-path-when-renaming-files/18460/3 "2016-11-30T14:06:20Z")

</div>

I had a look at this and will fix it to the next release. Thanks for reporting!

Kind regards  
– Florian

---

<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 5, 2016, 9:09am UTC](https://community.mp3tag.de/t/f-wrong-path-when-renaming-files/18460/4 "2016-12-05T09:09:33Z")

</div>

The reported issue is now fixed with the current [Development Build (Mp3tag v2.80a)](http://developer.mp3tag.de).

Thanks again!

Kind regards  
– Florian

---

<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 28, 2018, 2:09pm UTC](https://community.mp3tag.de/t/f-wrong-path-when-renaming-files/18460/5 "2018-12-28T14:09:00Z")

</div>

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