#Command raised an exception: PermissionError: [Errno 13] Permission denied: 'temp_guilds'

1 messages · Page 1 of 1 (latest)

mystic vapor
#

II'm going to guess that either the "guilds" folder doesn't exist or "temp_guilds" already exists?

#

or perhaps where it's executing, it literally doesn't have permissiions

#

are you running this locally, on an VPS, what?

cosmic mural
#

I have already checked all your assumptions, they turned out to be incorrect

cosmic mural
mystic vapor
#

does the user that is running the code have permissions to create a directory?

cosmic mural
#

There is, and the bot successfully creates a folder, but in the future it cannot get it and attach it to the message

mystic vapor
#

so when the folder doesn't exist, it successfully runs or not?

cosmic mural
#

yes

mystic vapor
#

then it's erroring because the folder already exists. Either delete it when you're done with it, or add dirs_exist_ok=True as a kwarg to shutil.copytree()

cosmic mural
#

It's not about that. Perhaps you misunderstood me. Let me explain again: when the folder exists, an error pops up stating that the program does not have the rights to get this folder and attach it to the message, when the folder does not exist, it is created and an identical error pops up again