Walking the PsiDirectory tree

Hello,

Is it possible to walk the psi directory, for example starting from a certain PsiFile or VirtualFile, finding its PsiDirectory, and then going "down" in the directory tree, onto the underlying PsiDirectory and so on?

Kasper

2 comments
Comment actions Permalink

Yes, of course. PsiDirectory has getParent() and getChildren() methods.

0
Comment actions Permalink

Okay, missed those, sorry about that.

0

Please sign in to leave a comment.