Oleg Vazhnev
Oleg Vazhnev

Reputation: 24067

Eclipse: how to traverse all files in some folder

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?

Upvotes: 5

Views: 4058

Answers (1)

Volker Stolz
Volker Stolz

Reputation: 7402

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

Upvotes: 9

Related Questions