v15 'Permission denied' - trying to create a file
#1
I'm trying to make a function that will create a text file in the addon's directory itself and I get an error: IOError: (13, 'Permission denied', 'filename .txt')

How can I fix this? I thought maybe it's got something to do with the fact that this is the addon's directory and maybe I should create the file in other directory, but I don't know how.. And maybe it's not even the issue (?) ...

Please someone can help me? Sad

I'm working on Windows 10 btw
Reply
#2
addons should store their data in their own subfolder under the addon_data directory.
if you save stuff to the addon folder itself, it will be wiped as soon as the addon get updated.

that being said, if you require help, it's always best to post the python code you're using and include a full Debug Log in which you replicate the error.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thanks, It works now! And I'll keep that in mind. Blush
Reply

Logout Mark Read Team Forum Stats Members Help
'Permission denied' - trying to create a file0