Implment updatedir command.