FPakPlatformFile::FindFilesRecursively

Finds all the files within the directory tree, with optional file extension filter

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

IPlatformFile::FindFilesRecursively()

FPakPlatformFile::FindFilesRecursively()

References

Module

PakFile

Header

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

Include

#include "IPlatformFilePak.h"

Syntax

virtual void FindFilesRecursively
(
    TArray< FString > & FoundFiles,
    const TCHAR * Directory,
    const TCHAR * FileExtension
)

Remarks

Finds all the files within the directory tree, with optional file extension filter

Returns

FoundFiles All the files that matched the optional FileExtension filter, or all files if none was specified.

Parameters

Parameter

Description

Directory

The starting directory to iterate the contents. This function explores subdirectories

FileExtension

If FileExtension is NULL, or an empty string "" then all files are found. Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned.