Small feature request - filename length limitation

All your suggestions, requests and ideas for future development
Post Reply
User avatar
Wolfie
Posts: 165
Joined: 27 Oct 2015, 02:59

Small feature request - filename length limitation

Post by Wolfie »

On Windows, which has the maximum length of 260(?) characters for a path name by default. I've disabled that limit, and instead of setting unixfs to true, would prefer there be a value that can be set to true to ignore the limit, assuming that there isn't an easy way to check if the limit is in effect or not.

Also, Google AI is a pain. I asked it to show me the changelog for 5.3.0 and it insisted that the latest was 5.2.3. I had to beat it with a stick for it to check and see that a new version had been released. :lol:
User avatar
rednoah
The Source
Posts: 24666
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Small feature request - filename length limitation

Post by rednoah »

Wolfie wrote: 10 Sep 2026, 03:22 On Windows, which has the maximum length of 260(?) characters for a path name by default.
:?: What is your use case? Do you really need a single file name that is longer than 260 characters? You notably can have a file path much much longer than 260 characters, just not a single folder / file name longer than 260 characters.


Wolfie wrote: 10 Sep 2026, 03:22 I asked it to show me the changelog for 5.3.0 and it insisted that the latest was 5.2.3.
:idea: 5.3.0 was released ~3 hours ago.
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 165
Joined: 27 Oct 2015, 02:59

Re: Small feature request - filename length limitation

Post by Wolfie »

It's just that it was showing me some red on a few filenames, but after another look, it appears to be just the filename and not the full path causing the issue. Had to add in ".take()" to account for potential issues.
User avatar
rednoah
The Source
Posts: 24666
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Small feature request - filename length limitation

Post by rednoah »

:?: What was the file or folder than that was more than 260 characters though? Perhaps an episode of some Anime with extremely long episode title? Bindings such as {t} implicitly limit the return value to 150 characters or less so typical formats should already account for that.
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 165
Joined: 27 Oct 2015, 02:59

Re: Small feature request - filename length limitation

Post by Wolfie »

Super Friends, multiple episodes combined into one. I checked the length of the name and it was hitting 255 characters. So I added a check to trim the episode name if it's over 150 characters, leaving room for the show name and other stuff.
User avatar
rednoah
The Source
Posts: 24666
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Small feature request - filename length limitation

Post by rednoah »

:?: I see. So you have a custom format with support for multi-episode naming, but you're using {episodes} to access the raw episode titles to then join them together? You could use the {t} binding instead. It'll support multi-episode titles as well and join them with & by default and also limit the total length of the return value.
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 165
Joined: 27 Oct 2015, 02:59

Re: Small feature request - filename length limitation

Post by Wolfie »

I'll have to look at it again, since my fix (which I haven't tested yet) might be pointless.
User avatar
Wolfie
Posts: 165
Joined: 27 Oct 2015, 02:59

Re: Small feature request - filename length limitation

Post by Wolfie »

Yeah, this is completely on me. Though I did add in an extra measure that will trim "t" down if the other data will exceed 100 characters. Not sure why I was using "episode" though.
Post Reply