Fix filename length limit
Posted: 05 Jun 2014, 02:08
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:
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
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)}
@see File System Limits
http://msdn.microsoft.com/en-us/library ... spx#limits
UPDATE:
r2247 and above limit {t} to 150 chars