Permission Denied error



Hello, I read the other applications you have answered but none have answered my question.
I am running a Discord Bot (Python) and when i try to edit a file, it keeps giving me an error:
Failed to write to ‘’. Failed saving file ! : Red-DiscordBot/cogs/ ERR: Error: EACCES: permission denied, open ‘/home/ubuntu/workspace/Red-DiscordBot/cogs/’.
I don’t know how to fix it, and I don’t know how to operate linux, so if you could send me any commands that would fix it, it would be very nice.