UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FileManagerGenericImpl::FFileMatch Class Reference
+ Inheritance diagram for FileManagerGenericImpl::FFileMatch:

Public Member Functions

 FFileMatch (TArray< FString > &InResult, const FString &InWildCard, bool bInFiles, bool bInDirectories, bool bInStoreFullPath=false)
 
virtual bool ShouldVisitLeafPathname (FStringView LeafFilename) override
 
virtual bool Visit (const TCHAR *FilenameOrDirectory, bool bIsDirectory)
 
- Public Member Functions inherited from IPlatformFile::FDirectoryVisitor
 FDirectoryVisitor (EDirectoryVisitorFlags InDirectoryVisitorFlags=EDirectoryVisitorFlags::None)
 
virtual ~FDirectoryVisitor ()
 
CORE_API bool CallShouldVisitAndVisit (const TCHAR *FilenameOrDirectory, bool bIsDirectory)
 
UE_FORCEINLINE_HINT bool IsThreadSafe () const
 

Public Attributes

TArray< FString > & Result
 
FString WildCard
 
bool bFiles
 
bool bDirectories
 
bool bStoreFullPath
 
UE::FMutex ResultLock
 
- Public Attributes inherited from IPlatformFile::FDirectoryVisitor
EDirectoryVisitorFlags DirectoryVisitorFlags
 

Constructor & Destructor Documentation

◆ FFileMatch()

FileManagerGenericImpl::FFileMatch::FFileMatch ( TArray< FString > &  InResult,
const FString &  InWildCard,
bool  bInFiles,
bool  bInDirectories,
bool  bInStoreFullPath = false 
)
inline

Member Function Documentation

◆ ShouldVisitLeafPathname()

virtual bool FileManagerGenericImpl::FFileMatch::ShouldVisitLeafPathname ( FStringView  LeafPathname)
inlineoverridevirtual

Called with the LeafPathname (FullPath == Path/LeafPathname, LeafPathname == BaseName.Extension) before calling Visit. If it returns true, Visit will be called on the path, otherwise Visit will be skipped, and the return value of Visit is treated as true (continue iterating). Called both for directories and files.

Reimplemented from IPlatformFile::FDirectoryVisitor.

◆ Visit()

virtual bool FileManagerGenericImpl::FFileMatch::Visit ( const TCHAR FilenameOrDirectory,
bool  bIsDirectory 
)
inlinevirtual

Callback for a single file or a directory in a directory iteration.

Parameters
FilenameOrDirectoryIf bIsDirectory is true, this is a directory (with no trailing path delimiter), otherwise it is a file name.
bIsDirectorytrue if FilenameOrDirectory is a directory.
Returns
true if the iteration should continue.

Implements IPlatformFile::FDirectoryVisitor.

Member Data Documentation

◆ bDirectories

bool FileManagerGenericImpl::FFileMatch::bDirectories

◆ bFiles

bool FileManagerGenericImpl::FFileMatch::bFiles

◆ bStoreFullPath

bool FileManagerGenericImpl::FFileMatch::bStoreFullPath

◆ Result

TArray<FString>& FileManagerGenericImpl::FFileMatch::Result

◆ ResultLock

UE::FMutex FileManagerGenericImpl::FFileMatch::ResultLock

◆ WildCard

FString FileManagerGenericImpl::FFileMatch::WildCard

The documentation for this class was generated from the following file: