INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Prevent Auto Import from creating illegal file and folder names (Windows)  (Read 2040 times)

Mike Foran

  • World Citizen
  • ***
  • Posts: 212

I have an occasional issue where my Auto Import setup creates illegal file and folder names. For instance, any folder name that ends with three dots ... ends up being unreadable by explorer and creates errors. I have Auto Import automatically tag and move files placed into a watch folder with these tags applied:

Filename (name): [Track #] - [Name].[File Type]
Filename (path): M:\[Media Type]\[Media Sub Type]\[Artist]\[Album]

For the most part this works fine but if the Album name has three dots at the end of it I get an illegal folder with three dots at the end of the name. I found out how to delete them from this thread: https://yabb.jriver.com/interact/index.php?topic=104411.0. But I would like to know how to prevent Auto Import from creating them in the first place. I notice that if I do a manual RMCF with the same name and path tag instructions, it is smart enough to lop off the three dots that would cause the error. But Auto Import needs more precise directions. Is there a way to prevent Auto Import from making this mistake again?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Prevent Auto Import from creating illegal file and folder names (Windows)
« Reply #1 on: November 14, 2017, 09:08:34 am »

I can't reproduce this.

I change the artist name to "Abba..." then set the directory rule to include [Artist] and Media Center cleans the filename up just like I'd expect at import time.  There's no dots after the filename because we call the function to fix a filename when you set the path.

Any tips?
Logged
Matt Ashland, JRiver Media Center

Mike Foran

  • World Citizen
  • ***
  • Posts: 212
Re: Prevent Auto Import from creating illegal file and folder names (Windows)
« Reply #2 on: November 14, 2017, 09:30:59 am »

Can I PM you a test file? In this case it was Sting's "If On a winter's Night..." album that created the illegal folder name.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Prevent Auto Import from creating illegal file and folder names (Windows)
« Reply #3 on: November 14, 2017, 09:34:52 am »

Can I PM you a test file? In this case it was Sting's "If On a winter's Night..." album that created the illegal folder name.

Just email me the file at matt at jriver dot com.

Also include the exact settings you're using the change / build the filename.

Thanks!
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Prevent Auto Import from creating illegal file and folder names (Windows)
« Reply #4 on: November 14, 2017, 02:38:41 pm »

Thanks for the help!

Coming next build we'll try this:
Changed: Setting the Filename (path) field with an import rule will fix the directory path (add a slash at the end) so that the path cleaning functions that remove directories with dots, etc. run.
Logged
Matt Ashland, JRiver Media Center

Mike Foran

  • World Citizen
  • ***
  • Posts: 212
Re: Prevent Auto Import from creating illegal file and folder names (Windows)
« Reply #5 on: November 14, 2017, 02:49:27 pm »

Thanks for the help!

Coming next build we'll try this:
Changed: Setting the Filename (path) field with an import rule will fix the directory path (add a slash at the end) so that the path cleaning functions that remove directories with dots, etc. run.

Thank YOU!
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14497
  • I won! I won!
Re: Prevent Auto Import from creating illegal file and folder names (Windows)
« Reply #6 on: November 14, 2017, 02:55:49 pm »

...also thanks for the link on how to delete them.  Worked for me!
Logged
JRiver CEO Elect
Pages: [1]   Go Up