renamed processFilesRecursively