Returns a vector of all .ion files in the directory dir

Creates a file for the given dir with all the subdirectories and file names in the directory. Also recursively generates files for all of dir’s subdirectories. Requires dir to be a directory.

Returns a file name with prefix prepended and ‘rs’ as the extension