# Normalising filenames

**URL:** https://discourse.beets.io/t/normalising-filenames/445
**Category:** Help
**Created:** [August 12, 2018, 11:45am UTC](https://discourse.beets.io/t/normalising-filenames/445 "2018-08-12T11:45:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BredFloggs](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@BredFloggs](https://discourse.beets.io/u/BredFloggs)
#### Post date: [August 12, 2018, 11:45am UTC](https://discourse.beets.io/t/normalising-filenames/445/1 "2018-08-12T11:45:03Z")

</div>

I use Linux. I don’t like spaces (or any other special characters) in filenames, so have a shellscript which works well to normalise my filenames, so they match the regex “^[a-z\_-0-9]\*$”  
If I import into beets, despite using %lower{$pathspec}, I get what to me is the infuriating set of filenames ‘A Nother Album/…’ - including single quotes.

Can beets be told to leave my carefully selected pathnames alone?

Thanks  
Oh, and please, if you want to say “those are perfectly good filenames, why would you want to change them?” , keep it to yourself.

---

<div class="post-metadata">

### Author: ![BredFloggs](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@BredFloggs](https://discourse.beets.io/u/BredFloggs)
#### Post date: [August 12, 2018, 11:48am UTC](https://discourse.beets.io/t/normalising-filenames/445/2 "2018-08-12T11:48:56Z")

</div>

Sorry to comment to my own question, but what I’d really like to do is to have beets import my music (which I ripped from CD’s - and so which is sometimes in a format I dislike) and transform the filenames to the pathspec which I prefer - ie the regex (plus forward slashes, of course ) which I gave.  
As an aside, in case you think I’m being finicky, look at what AWS suggest as sensible filename characters for S3 - they make a lot of sense to me.

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [August 12, 2018, 2:28pm UTC](https://discourse.beets.io/t/normalising-filenames/445/3 "2018-08-12T14:28:10Z")

</div>

Hmm; %lower certainly shouldn’t be doing that. I agree that using that and similar path-format functions should be the way to get the filenames you want.

Can you include the `paths:` configuration you’re currently using?
