Reformat directory structure representation