UBlueprintFileUtilsBPLibrary::FindRecursive

Finds all the files and/or directories within the given directory and any sub-directories.

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 FindRecursive
(
    const FString & StartDirectory,
    TArray< FString > & FoundPaths,
    const FString & Wildcard,
    bool bFindFiles,
    bool bFindDirectories
)

Remarks

Finds all the files and/or directories within the given directory and any sub-directories. Files can be found with anoptional file extension filter.

Returns

true if anything was found, false otherwise

Parameters

Parameter

Description

StartDirectory

The absolute path to the directory to start the search. Ex: "C:\UE4\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

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