# Use of Brackets in directory name

**URL:** https://community.mp3tag.de/t/use-of-brackets-in-directory-name/11258
**Category:** Support
**Created:** [December 9, 2010, 10:43am UTC](https://community.mp3tag.de/t/use-of-brackets-in-directory-name/11258 "2010-12-09T10:43:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bmfholland](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d9b06d/32.png) [@bmfholland](https://community.mp3tag.de/u/bmfholland)
#### Post date: [December 9, 2010, 10:43am UTC](https://community.mp3tag.de/t/use-of-brackets-in-directory-name/11258/1 "2010-12-09T10:43:22Z")

</div>

Hi,

I'm experimenting with custom actions. I want to rename the directory to:

%artist% - %album% (%year%)

or if the CATALOG # is known, to:

**[**%catalog #%**]** %artist% - %album% (%year%)

I use the function below:

$if($grtr($len(%catalog #%),1),E:\_MUSIC!DONE\%publisher%[%catalog #%] %artist% - %album% (%year%),E:\_MUSIC!DONE\%publisher%\%artist% - %album% (%year%))

Somehow the brackets [] are not interpreted. Is there a workaround?

---

<div class="post-metadata">

### Author: ![bmfholland](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d9b06d/32.png) [@bmfholland](https://community.mp3tag.de/u/bmfholland)
#### Post date: [December 9, 2010, 10:52am UTC](https://community.mp3tag.de/t/use-of-brackets-in-directory-name/11258/2 "2010-12-09T10:52:27Z")

</div>

Ok my bad. I just found the answer in another topic: [Rename folders and add a tag suffix](https://community.mp3tag.de/t/11064/1)

---

<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: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/use-of-brackets-in-directory-name/11258/3 "2026-02-09T12:22:44Z")

</div>


