2016-01-29, 00:00
Can someone tell me why this code works in Windows, but not in Droid?
Code:
import xbmc, xbmcaddon, xbmcgui, xbmcplugin,os,sys
import shutil
save = ["Folder"]
path = xbmc.translatePath('special://home/addons/')
for content in os.listdir(path):
#print(content)
if os.path.isdir('{}{}'.format(path, content)):
#print(content)
if content not in save:
print(content)
shutil.rmtree('{}{}'.format(path, content))