def METHOD_NAME(cls, path):
    snap_id = cls._snap_id_from_snapdir_path(path)
    if snap_id:
        return os.path.join(path, "snap_%s" % snap_id)
    else:
        raise OSError("Cannot infer correct path to pass to pynbody")