# "Tag - Filename" creates a directory when artist name contains certain characters

**URL:** https://community.mp3tag.de/t/tag-filename-creates-a-directory-when-artist-name-contains-certain-characters/49762
**Category:** Support
**Created:** [July 28, 2020, 12:00pm UTC](https://community.mp3tag.de/t/tag-filename-creates-a-directory-when-artist-name-contains-certain-characters/49762 "2020-07-28T12:00:22Z")
**Posts on this page:** 1
**Showing post:** 6

<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: [July 28, 2020, 12:56pm UTC](https://community.mp3tag.de/t/tag-filename-creates-a-directory-when-artist-name-contains-certain-characters/49762/6 "2020-07-28T12:56:14Z")

</div>

as I said: the / and \ are valid characters in filenames and help to create folder structures from tags, see the FAQs:

> [@Converters to rename files or to import tags](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/2):
>
> How to rename files based on tags? Renaming files, creating folders and complete directory structures from tags can be done by using the [:mt\_ttf:] Converter \> Tag - Filename with a format string. A format string is used to describe the structure of the desired filename. Besides using normal placeholders (such as %artist%, %title%, ...) and arbitrary text (e.g., Music) it also allows for separating folders with the backslash \ character. Here is an example that renames the file based on the t…

So $validate() will not remove these 2 characters.

---

_[View the full topic](https://community.mp3tag.de/t/tag-filename-creates-a-directory-when-artist-name-contains-certain-characters/49762)._
