I have a folder in hdfs which has two subfolders each one has about 30 subfolders which,finally,each one contains xml files.
I want to list all xml files giving only the mai
don't use recursive approach (heap issues) :)
use a queue
queue.add(param_dir)
while (queue is not empty){
directory= queue.pop
- get items from current directory
- if item is file add to a list (final list)
- if item is directory => queue.push
}