Getting VirtualFile from nested archives URL

Answered

Hi! I'm trying to get VirtualFile (or PsiFile eventually) of class inside nested archives. Let's say we have a path like that:

/some_path/custom_archive.abc!/jar_archive.jar!/SomeClass.kt


Unfortunately using just VirtualFileManager#findFileByUrl won't do the job since it's not working with nested archives.

One of the ideas was to get a VirtualFile of path

/some_path/custom_archive.abc!/jar_archive.jar


which I can do using my simple custom AbcFileSystem and then somehow (here's the tricky part) try to get JarFileSystem from it and find SomeClass inside of it.

1 comment
Comment actions Permalink

Nested archives are not supported in VFS and there are currently no such plans either.

0

Please sign in to leave a comment.