FPakFile::FindPrunedFilesAtPath

Looks for files or directories within the Pruned DirectoryIndex of the pak file.

Windows
MacOS
Linux

References

Module

PakFile

Header

/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h

Include

#include "IPlatformFilePak.h"

Syntax

template<class ContainerType>
void FindPrunedFilesAtPath
(
    ContainerType & OutFiles,
    const TCHAR * InPath,
    bool bIncludeFiles,
    bool bIncludeDirectories,
    bool bRecursive
) const

Remarks

Looks for files or directories within the Pruned DirectoryIndex of the pak file. The Pruned DirectoryIndex does not have entries for most Files in the pak; they were removed to save memory. A project can specify which FileNames and DirectoryNames can be marked to keep in the DirectoryIndex; see FPakFile::FIndexSettings and FPakFile::PruneDirectoryIndex Returned paths are full paths (include the mount point)

Parameters

Parameter

Description

OutFiles

List of files or folder matching search criteria.

InPath

Path to look for files or folder at.

bIncludeFiles

If true OutFiles will include matching files.

bIncludeDirectories

If true OutFiles will include matching folders.

bRecursive

If true, sub-folders will also be checked.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss