IPlatformFile::IterateDirectoryStatRecursively

Call the Visit function of the visitor once for each file or directory in a directory tree.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h

Include

#include "GenericPlatform/GenericPlatformFile.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformFile.cpp

Syntax

virtual bool IterateDirectoryStatRecursively
(
    const TCHAR * Directory,
    FDirectoryStatVisitorFunc Visitor
)

Remarks

Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.

Returns

false if the directory did not exist or if the visitor returned false.

Parameters

Parameter

Description

Directory

The directory to iterate the contents of, recursively.

Visitor

Visitor to call for each element of the directory and each element of all subdirectories (see FDirectoryStatVisitor::Visit for the signature).

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