implement show dir and show file suffix