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

OSError: [Errno 36] File name too long: #24

Open
klimli opened this issue Nov 4, 2017 · 0 comments
Open

OSError: [Errno 36] File name too long: #24

klimli opened this issue Nov 4, 2017 · 0 comments

Comments

@klimli
Copy link

klimli commented Nov 4, 2017

There are better ways to handle it for sure but for my own use I added:

url_only = str(url).split('/')[-1]
filename = date_created + url_only
filename = filename[:9] + filename[int(len(url_only)/3):]
it cuts the name from the URL to 1/3
on line 270

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

No branches or pull requests

1 participant