To modify the directory format,
First, find Reference-Directory-Custom Directory-Modify;
Select the style of your titles at all levels (for example, Directory 1 and Directory 2, only one can be modified at a time), click Modify, and then change it to the format you want and confirm.
Then modify other title styles respectively, and click OK after modification. The directory will be updated to your modified format.
I hope this helps.