# Slashes in Title create new directory

**URL:** https://community.mp3tag.de/t/slashes-in-title-create-new-directory/53788
**Category:** Mac
**Created:** [July 18, 2021, 9:20pm UTC](https://community.mp3tag.de/t/slashes-in-title-create-new-directory/53788 "2021-07-18T21:20:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AvidMusicRenamer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/aca169/32.png) [@AvidMusicRenamer](https://community.mp3tag.de/u/AvidMusicRenamer)
#### Post date: [July 18, 2021, 9:20pm UTC](https://community.mp3tag.de/t/slashes-in-title-create-new-directory/53788/1 "2021-07-18T21:20:56Z")

</div>

Hi... If there is a slash in the Title and you run Tag - Filename a new directory is created.

For example:

Title: It's a Sin / I Will Survive (Live in Rio 1994) [2021 Remaster]

`02-07 - It's a Sin ----> I Will Survive (Live in Rio 1994) [2021 Remaster].m4a`

The tag to filename format string is set to this:  
`/Volumes/Music/flac/%ALBUMARTIST%/%ALBUM% (%YEAR%)/$ifgreater(%TOTALDISCS%,1,$num(%DISCNUMBER%,2)-,)$num(%TRACK%,2) - %TITLE%`

Is there a way to have it not create a directory when it renames the files?

Thanks.

---

<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 19, 2021, 4:55am UTC](https://community.mp3tag.de/t/slashes-in-title-create-new-directory/53788/2 "2021-07-19T04:55:31Z")

</div>

Please see the [Documentation about Mac features](https://community.mp3tag.de/t/rename-files-and-import-tags-from-files/51720).

## Create Folder Structures based on Tags

When you're using a slash character `/` in a format string, Mp3tag creates a folder from the part of the format string in front of a slash.

---

<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: [July 19, 2021, 8:01am UTC](https://community.mp3tag.de/t/slashes-in-title-create-new-directory/53788/3 "2021-07-19T08:01:08Z")

</div>

You can enable the configuration setting _Preferences → General → Replace invalid NTFS characters_ to let Mp3tag replace them automatically when renaming.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [August 18, 2021, 8:01am UTC](https://community.mp3tag.de/t/slashes-in-title-create-new-directory/53788/4 "2021-08-18T08:01:10Z")

</div>

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