# Issue with Renaming files

**URL:** <https://community.metabrainz.org/t/issue-with-renaming-files/613563>\
**Category:** MusicBrainz Picard\
**Tags:** picard, musicbrainz\
**Created:** [December 12, 2022, 8:45pm UTC](https://community.metabrainz.org/t/issue-with-renaming-files/613563 "2022-12-12T20:45:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zabbix112](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/z/f6c823/32.png) [@zabbix112](https://community.metabrainz.org/u/zabbix112)\
**Post date:** [December 12, 2022, 8:45pm UTC](https://community.metabrainz.org/t/issue-with-renaming-files/613563/1 "2022-12-12T20:45:27Z")

</div>

Good Day,  
I have been reading a lot of peoples posts and I still need help. This is my first time Cleaning up my Music. Rough numbers 1444 folders and I would say only about 200 artists. What is going on is “ft. Ft. Feat. feat. Featuring, featuring” is causing an issue my file structure I am trying to do.

Artist  
/ album  
/song

-simple right! wrong

what I’m Getting  
Artist  
/ album  
/song  
Artist ft.  
/ album  
/song  
Artist feat.  
/ album  
/song  
Artist featuring “artist”  
/ album  
/song

I have tried the plugin, I have tried many different scripts, I have tried file name script editor, as many different variations as I could thing of. Help! about to pull hair out… whats left…lol

$noop(Artist)

$if2(%artist%)/

$if(%album%,

$noop(Album Tracks)

$if($eq($or(%originaldate%,%date%),1),

%album%)/

%title%,

$noop(Non-Album Tracks)

%title%

)

---

<div class="post-metadata">

**Author:** ![rdswift](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rdswift/32/7032_2.png) [@rdswift](https://community.metabrainz.org/u/rdswift)\
**Post date:** [December 12, 2022, 9:04pm UTC](https://community.metabrainz.org/t/issue-with-renaming-files/613563/2 "2022-12-12T21:04:54Z")

</div>

Assuming that you’re matching your files to albums in the right hand pane before saving, I suggest you try setting your file naming script to something like:

```taggerscript
$if2(%albumartist%,%artist%)/$if(%album%,%album%/)%title%

```

Note that this will set up the artist directory based on the **Album Artist** rather than the **Track Artist** if possible. For more information on file naming scripts, you might want to check out the [Writing a File Naming Script](https://picard-docs.musicbrainz.org/en/tutorials/naming_script.html) tutorial.
