Navigation
API > API/Plugins > API/Plugins/BlueprintFileUtils > API/Plugins/BlueprintFileUtils/UBlueprintFileUtilsBPLibrary
Description
Finds all the files and/or directories within the given directory and any sub-directories. Files can be found with anoptional file extension filter.
| Name | FindRecursive |
| Type | function |
| Header File | /Engine/Plugins/BlueprintFileUtils/Source/BlueprintFileUtils/Public/BlueprintFileUtilsBPLibrary.h |
| Include Path | #include "BlueprintFileUtilsBPLibrary.h" |
| Source | /Engine/Plugins/BlueprintFileUtils/Source/BlueprintFileUtils/Private/BlueprintFileUtilsBPLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="FileUtils")
static bool FindRecursive
(
const FString & StartDirectory,
TArray < FString > & FoundPaths,
const FString & Wildcard,
bool bFindFiles,
bool bFindDirectories
)
true if anything was found, false otherwise
Parameters
| Name | Remarks |
|---|---|
| StartDirectory | The absolute path to the directory to start the search. Ex: "C:\UnrealEditor\Pictures" |
| FoundPaths | All the paths (directories and/or files) found |
| Wildcard | Wildcard that can be used to find files or directories with specific text in their name. E.g .png to find all files ending with the png extension, *images to find anything with the word "images" in it Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned. Does not apply to directories |
| bFindFiles | Whether or not to find files |
| bFindDirectories | Whether or not to find directories |