Update the searchFiles transform function