UBlueprintFileUtilsBPLibrary::FindFiles

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

Windows
MacOS
Linux

References

Module

BlueprintFileUtils

Header

/Engine/Plugins/BlueprintFileUtils/Source/BlueprintFileUtils/Public/BlueprintFileUtilsBPLibrary.h

Include

#include "BlueprintFileUtilsBPLibrary.h"

Source

/Engine/Plugins/BlueprintFileUtils/Source/BlueprintFileUtils/Private/BlueprintFileUtilsBPLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="FileUtils")
static bool FindFiles
(
    const FString & Directory,
    TArray< FString > & FoundFiles,
    const FString & FileExtension
)

Remarks

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

Returns

true if anything was found, false otherwise

Parameters

Parameter

Description

Directory

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

FoundFiles

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

FileExtension

If FileExtension is 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