FFileManagerGeneric::FindFiles

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

Windows
MacOS
Linux

Override Hierarchy

IFileManager::FindFiles()

FFileManagerGeneric::FindFiles()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/FileManagerGeneric.h

Include

#include "HAL/FileManagerGeneric.h"

Source

/Engine/Source/Runtime/Core/Private/HAL/FileManagerGeneric.cpp

Syntax

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

Remarks

Finds all the files within the given directory, 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

absolute path to the directory to search. Ex: "C:\UE4\Pictures"

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