IPlatformFile::FindFilesRecursively

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

Windows
MacOS
Linux

Override Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h

Include

#include "GenericPlatform/GenericPlatformFile.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformFile.cpp

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.

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