Posts: 1,332
Joined: Jan 2016
Reputation:
54
So I am not sure what I need or need to add as I can on figure out with something already working...
But I have a add-on that is saving images to the userdata folder..
Is there something I can add to the script to clear folder when Kodi is closed?
Or delete the whole folder?
Posts: 3,447
Joined: Jan 2011
Reputation:
362
pkscout
Team-Kodi Member
Posts: 3,447
I assume you mean a folder *inside* the userdata folder. If you're saving stuff to the root of the userdata folder, that's bad form.
You certainly can add a cleanup routine of some sort that deletes stuff from userdata/<addon>, but I wouldn't delete everything or the folder. Any settings for your addon are also stored there, and you probably don't want to delete those.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
That is where it is located the appdata folder in userdata... Is there another add-on that does a clean routine I may could look at and take parts from.. as I can do .XML skinning this side is beyond me.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Thanks I will take all look