the code i posted works.
but can you update it so that it returns a string array of all files?
i don't know where to define the array so that not a new one gets created every time the recursion occurs, and i don't want to define it outside of the function...