Make create new file and directory controllers return the name of the new item.