FIX: add max filename checks and trim if too long

#1
by mrjoshuap - opened

I ran into a problem where the length of the out_folder, which is named based on the prompt, exceeded the maximum length of a filenames. I added support to trim the long out_folder name to the maximum allowed by the operating system.

That said, characters beyond the limit are removed which might cause collisions if multiple prompts have the same first 255 characters.

You misnamed the python file...

whoops. I think it pretty formatted it too... not used to doing the huggingface PR ... is there a github or other repo?

I'm traveling this week, I'm going to close this one and reopen it when I have my full setup.

mrjoshuap changed pull request status to closed

Sign up or log in to comment