ListFiles produces a cell array of file names for a given query (e.g. list all ".xls" files in a given folder) ProcessPaths takes a cell array of file names (from ListFiles) as the files to process using some callback function that does the processing. See ProcessMetabolics.m for an example (the function itself is just a call to ProcessPaths.m) -Note, SanitizePaths is called by Processpaths