Improve show_and_select_files() function
The previous function enumerated the whole directory and used a lot of outdated API to decide how to show files. The new code queries the filesystem model to decide about this. The now unused old functions were removed.
Showing with 101 additions and 212 deletions