dir2files function

Return a vector of filenames based on a directory name or options list