List files in a given directory without including any folders.

list.files_only(dir, full.names = TRUE, recursive = TRUE)