Why we are looping over the same data twice?
Would it be better if this code is moved to "findFilesRecursive"?