[X] Renaming with '\' file directory bug

If a song has a \ symbol in its name (as opposed to /), automatically renamng the song causes it to get placed into a file directory because \ creates a directory.
For example:
Song name -> Short skirt \ Long Jacket
This was track number 4
I used Alt + F1 to rename it to 04 Short Skirt \ Long Jacket

However, this action named it Long Jacket and placed it into a Folder named 04 Short Skirt

Is there a way to blacklist the \ symbol, as this creates directories?

NOTE: I changed the song to Short Skirt / Long Jacket to avoid this problem

Where is the bug?

You used an illegal character for a filename as the backslash is part of a path.
The backslash may be inserted deliberately if you want to move a file to a different folder. That is why it is not blackslisted by default.

If you are not sure whether the automatic renaming will lead to valid filenames then enclose the whole filename mask into a $validate() statement. (see help for more details).

I have been having this issue as well. I feel that MP3 Tagger should just ignore "" entirely. I see no reason to have it since it does not work.

I think I described the function of the backslash.
So could you please specify in what respect it does not work?
There is one function ("create a subdirectory") and that does work.
On the other hand: there is no safeguard from misuse. Even though you might not have expected the result, other users might just as well have intended it.

I see you point but I wouldn't consider this as a bug. It is rather a feature.
If you want to be really "safe" when renaming filename you should foresee those 8 characters ( /:?<>| ).
You should define an encoded format for each of those characters.
E.g. < = <, > = >, / = &slash;, </b> = &bslash;, : = :, = &asterisk;, ? = &qmark;.
Therefore two replace commands 1. Tag -> Filename

$replace(string, "<", "&lt;", ">", "&gt;", "/", "&slash;", "\", "&bslash;", ":", "&colon;", "*", "&asterisk;", "?", "&qmark;")
2. Filename -> Tag
$replace(string, "&lt;", "<", "&gt;", ">", "&slash;", "/", "&bslash;", "\", "&colon;", ":", "&asterisk;", "*", "&qmark;", "?") could be used for filenames.

Use your "own" encoded string for each of 8 characters.

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