def create_temp():
'''create temp folder for skin backup/restore'''
temp_path = u'%stemp/' % ADDON_DATA
# workaround weird slashes behaviour on some platforms.
temp_path = temp_path.replace("//","/").replace("special:/","special://")
if xbmcvfs.exists(temp_path):
recursive_delete_dir(temp_path)
xbmc.sleep(2000)
xbmcvfs.mkdirs(temp_path)
xbmcvfs.mkdirs(temp_path + "skinbackup/")
return temp_path
backuprestore.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录