FFileManagerGeneric::IterateDirectory

Call the visitor once for each file or directory in a single directory.

Windows
MacOS
Linux

Override Hierarchy

IFileManager::IterateDirectory()

FFileManagerGeneric::IterateDirectory()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/FileManagerGeneric.h

Include

#include "HAL/FileManagerGeneric.h"

Source

/Engine/Source/Runtime/Core/Private/HAL/FileManagerGeneric.cpp

Syntax

virtual bool IterateDirectory
(
    const TCHAR * Directory,
    IPlatformFile::FDirectoryVisitorFunc Visitor
)

Remarks

Call the visitor once for each file or directory in a single directory. This function does not explore 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.

Visitor

Visitor to call for each element of the directory (see FDirectoryVisitor::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