Split create controller in to create file controller and create directory controller.