This updates a direcotory and adds error logs to alert messages