-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
test_ensure_mkdir_p: OSError: [Errno 36] File name too long #65
Comments
Possibly a bug due to |
Lol. Yeah it’s like 255 total characters on windows. Fixable for sure |
Oh on Linux it’s 4096 though |
- Include hypothesis assumption of path length `< 255` - Fixes #65 Signed-off-by: Dan Ryan <dan@danryan.co>
The assumption is insufficient, as the check limits the number of codepoints, but for most Linux filesystems, NAME_MAX (i.e. each path component) is 255 bytes. e.g. As can be seen above, legal_path_chars may generate the utf-8 codepoint The max_size is 64, thus the returned path may decode to 4 * 64 bytes: |
https://travis-ci.org/jayvdb/vistir/jobs/504095856 Python 3.6
The text was updated successfully, but these errors were encountered: