added displaying feature for files and directories