def METHOD_NAME(user, path):
    """
    Writes the contents of a file to a user's incrontab
    CLI Example:
    .. code-block:: bash
        salt '*' incron.write_incron_file root /tmp/new_incron
    """
    return (
        __salt__["cmd.retcode"](
            _get_incron_cmdstr(path), runas=user, python_shell=False
        )
        == 0
    )