Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: how to traverse all files in some folder

Tags:

eclipse

I do have some org.eclipse.core.resources.IFolder I need to traverse all files in this folder. (I also need to do some SAX things for each file, but I don't want to load EMF model, because it's too slow)

What is the best way to get the list of all files in this folder and subfolders?

like image 961
Oleg Vazhnev Avatar asked Jul 13 '10 14:07

Oleg Vazhnev


1 Answers

You can use IFolder.members() recursively to traverse the directory. (I am a bit confused, why did you mention EMF?)

like image 154
Volker Stolz Avatar answered Oct 16 '22 14:10

Volker Stolz