Fix filename length limit

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Fix filename length limit

Post by rednoah »

On Windows the filesystem limits file and folder names to 255 characters. If you use a very complex format that includes lots of information, or if {t} happens to be an extremely long title, then sometimes these limit will be exceeded and FileBot will not be able to rename these files then.

If the name is too long you will get IOException: The Parameter is Incorrect if you're using the GUI or FileSystemException: The filename, directory name, or volume label syntax is incorrect if you're using FileBot from the cmdline.


Solutions:

A. Edit your format and force a shorter file name by using less bindings or limiting the length of bindings.

e.g. limit the episode title to 100 characters:

Code: Select all

{t.take(100)}
B. Use Mac OS X or Linux, since these these are artificial limitation that Windows NTFS imposes

@see File System Limits
http://msdn.microsoft.com/en-us/library ... spx#limits


UPDATE:
r2247 and above limit {t} to 150 chars
:idea: Please read the FAQ and How to Request Help.
Post Reply