Check File Type
is_csv(x) is_xlsx(x) is_xls(x)
x
A file name.
Whether the file is (respectively) csv, xlsx, or xls.