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

Permission Error with filepath= #103

Open
carlosace3 opened this issue Oct 29, 2023 · 0 comments
Open

Permission Error with filepath= #103

carlosace3 opened this issue Oct 29, 2023 · 0 comments

Comments

@carlosace3
Copy link

carlosace3 commented Oct 29, 2023

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'

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