import os def get_all(path): return [name for name in os.listdir(path) if os.path.isdir(os.path.join(path, name))] def has_artist_art(path): if(os.path.exists(os.path.join(path, "artist.jpg")))or (os.path.exists(os.path.join(path, "artist.png"))) return True else: return False