[project-model] fillPackageDirectories: faster filesystem check

GitOrigin-RevId: 652c7ababfb7b6f3f8f85c4f785f9183bc8f2ba5
This commit is contained in:
Tagir Valeev
2024-05-14 10:33:31 +02:00
committed by intellij-monorepo-bot
parent 6786256e4d
commit 597cc08ccc

View File

@@ -322,7 +322,7 @@ internal class WorkspaceFileIndexDataImpl(private val contributorList: List<Work
}
else {
if (addedRoots.add(root)) result.add(root)
if (root.fileType is ArchiveFileType) {
if (root.fileSystem.protocol == StandardFileSystems.JAR_PROTOCOL) {
root.findChild("META-INF")?.findChild("versions")?.children?.forEach { versionRoot ->
val version = versionRoot.name.toIntOrNull()
if (version != null && version >= 9) {