Updating the structure of the directory