def path_from_name(name, ext=None, sep='|'):
    if ext:
        return fsencode(name.replace(os.sep, sep) + ext)
    else:
        return fsencode(name.replace(os.sep, sep))
Convert name with optional extension to file path.
dataset/ETHPy150Open mopidy/mopidy/mopidy/m3u/translator.py/path_from_name