开发者

Eclipse: how to traverse all files in some folder

开发者 https://www.devze.com 2023-01-07 04:18 出处:网络
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, b

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消