def METHOD_NAME(path):
    """Set the current chooser directory.
    Args:
        path (fsnative)
    """
    assert isinstance(path, fsnative)
    data = fsn2bytes(path, "utf-8")
    config.setbytes("memory", "chooser_dir", data)