Correctly updates directory information on initialisation.