We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Great stuff! works great but I have a problem:
Trying to save att to an specific filepath but it appear to not have the correct permission, opened my script as admin but it does not work:
`messages = gmail.get_messages(query=construct_query(query_params))
for message in messages: if message.attachments: for attm in message.attachments: print("File: " + attm.filename) attm.save(filepath="files", overwrite=True) ` Traceback (most recent call last): attm.save(filepath="files", overwrite=True) with open(filepath, 'wb') as f: ^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'files'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Great stuff! works great but I have a problem:
Trying to save att to an specific filepath but it appear to not have the correct permission, opened my script as admin but it does not work:
`messages = gmail.get_messages(query=construct_query(query_params))
for message in messages:
if message.attachments:
for attm in message.attachments:
print("File: " + attm.filename)
attm.save(filepath="files", overwrite=True)
`
Traceback (most recent call last):
attm.save(filepath="files", overwrite=True)
with open(filepath, 'wb') as f:
^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'files'
The text was updated successfully, but these errors were encountered: