isfilelist function

Checks whether datadir is a directory or a vector with filenames