Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support longer paths for Windows 10/11 #31

Closed
xtracool opened this issue Feb 26, 2023 · 1 comment
Closed

Support longer paths for Windows 10/11 #31

xtracool opened this issue Feb 26, 2023 · 1 comment
Labels

Comments

@xtracool
Copy link

xtracool commented Feb 26, 2023

pathvalidate.sanitize_filename() is clipping to 255 on Windows 11.

My Windows 11 installation has long filename enabled by default in the registry.
It would be good to either check that setting, or at least be able to override the 255 limit when calling the method.

@thombashi
Copy link
Owner

@xtracool
You can increase the limit by the max_len argument of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants