def make_dir(self, mypath): ''' Creates sub-directories if they are not found. ''' try: if not xbmcvfs.exists(mypath): xbmcvfs.mkdirs(mypath) except: if not os.path.exists(mypath): os.makedirs(mypath)