def make_dir(mypath, dirname):
''' Creates sub-directories if they are not found. '''
subpath = os.path.join(mypath, dirname)
try:
if not xbmcvfs.exists(subpath): xbmcvfs.mkdirs(subpath)
except:
if not os.path.exists(subpath): os.makedirs(subpath)
return subpath
评论列表
文章目录