Fixed bug in #_check_file_type*
Removed unnecessary view functions