FSandboxPlatformFile::DeleteDirectory

Deletes a directory This is partially copied from file manager but since [IPlatformFile](API\Runtime\Core\GenericPlatform\IPlatformFile) is lower level it's better to have local version which doesn't use the wrapped [IPlatformFile](API\Runtime\Core\GenericPlatform\IPlatformFile).

Windows
MacOS
Linux

References

Module

SandboxFile

Header

/Engine/Source/Runtime/SandboxFile/Public/IPlatformFileSandboxWrapper.h

Include

#include "IPlatformFileSandboxWrapper.h"

Source

/Engine/Source/Runtime/SandboxFile/Private/IPlatformFileSandboxWrapper.cpp

Syntax

bool DeleteDirectory
(
    const TCHAR * Path,
    bool Tree
)

Remarks

Deletes a directory This is partially copied from file manager but since IPlatformFile is lower level it's better to have local version which doesn't use the wrapped IPlatformFile.

Returns

true if the operaton was successful.

Parameters

Parameter

Description

Path

Path to the directory to delete.

Tree

true to recursively delete the directory and its contents

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