def name_from_path(path):
    name, _ = os.path.splitext(os.path.basename(path))
    try:
        return fsdecode(name)
    except UnicodeError:
        return None
Extract name from file path.
dataset/ETHPy150Open mopidy/mopidy/mopidy/m3u/translator.py/name_from_path