What is Pruned DirectoryIndex used for in pak file

Hi everyone:
Recently I’m learning about structures of pak file, The Engine is 4.26.
There‘s a Notes in the code that “SecondaryIndex PathHashIndex is used by default in shipped versions of games. Uses less memory, but does not provide access to all filenames.” And the Secondary Index contains PathHashIndex and PrunedDirectoryIndex. It seems that When I try to find a file in pak, the engine will look for it in PathHashIndex. And PathHashIndex has access to all files.
So I’m wondering what is Prund DirectoryIndex used for?

1 Like

It seemed more safe if Prund DirectoryIndex is removed form a pak file. So that even somebody can get the AES key some how, they can’t get file name in it.