Added error state to mkdir and touch.