add function of display dir name