logFileNamesGet function

Base function for retrieval of file names from a base directory and a list of data directories