At my original code it was working fine, but now that i migrated it says that don’t exists? WTF?
I think it’s because you are trying to find
/cogs, but it is actually located in
/RP-Utilities-Beta/cogs. It’s because I believe that the
./ at the beginning makes it an absolute path, so it’s trying to find
cogs in your root directory. So you could either change line 35 to
for filename in os.listdir("cogs")
for filename in os.listdir("./RP-Utilities-Beta")
Try both and see which works better.
The directory exists, but it exists inside of another directory.
yep, that’s what i’m trying to do, but it seems not working
By the way, your folder is still misspelt.
Renaming it to the correct spelling will ensure you won’t encounter errors from tiny spelling mistakes
change line 35 to:
for filename in os.listdir("./RP-Utilitites/cogs"):
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.