![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericPlatformFile.h>
Inheritance diagram for IPlatformFile::FDirectoryVisitor:Public Member Functions | |
| FDirectoryVisitor (EDirectoryVisitorFlags InDirectoryVisitorFlags=EDirectoryVisitorFlags::None) | |
| virtual | ~FDirectoryVisitor () |
| virtual bool | ShouldVisitLeafPathname (FStringView LeafPathname) |
| virtual bool | Visit (const TCHAR *FilenameOrDirectory, bool bIsDirectory)=0 |
| CORE_API bool | CallShouldVisitAndVisit (const TCHAR *FilenameOrDirectory, bool bIsDirectory) |
| UE_FORCEINLINE_HINT bool | IsThreadSafe () const |
Public Attributes | |
| EDirectoryVisitorFlags | DirectoryVisitorFlags |
Base class for file and directory visitors that take only the name.
|
inline |
|
inlinevirtual |
| bool IPlatformFile::FDirectoryVisitor::CallShouldVisitAndVisit | ( | const TCHAR * | FilenameOrDirectory, |
| bool | bIsDirectory | ||
| ) |
Helper function for receivers of FDirectoryVisitor. Enforces the contract for whether Visit should be called after calling ShouldVisitLeafPathName.
|
inline |
True if the Visit function can be called from multiple threads at once.
|
inlinevirtual |
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 in FileManagerGenericImpl::FFileMatch.
|
pure virtual |
Callback for a single file or a directory in a directory iteration.
| FilenameOrDirectory | If bIsDirectory is true, this is a directory (with no trailing path delimiter), otherwise it is a file name. |
| bIsDirectory | true if FilenameOrDirectory is a directory. |
Implemented in FileManagerGenericImpl::FFileMatch, FLocalTimestampDirectoryVisitor, UE::PakFile::Private::FPreventDuplicatesVisitor, FPakFileSearchVisitor, FDirectoryVisitorFuncWrapper, FFindFilesVisitor, FLoggedPlatformFile::FLogVisitor, FunctorDirectoryVisitor< FunctorType >, FWorldTilesGatherer, BuildPatchServices::FParallelDirectoryEnumerator, and FSandboxVisitor.
| EDirectoryVisitorFlags IPlatformFile::FDirectoryVisitor::DirectoryVisitorFlags |