fix showDirFile method