IPlatformFile::CopyDirectoryTree

Copy a file or a hierarchy of files (directory).

Windows
MacOS
Linux

Override Hierarchy

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 CopyDirectoryTree
(
    const TCHAR * DestinationDirectory,
    const TCHAR * Source,
    bool bOverwriteAllExisting
)

Remarks

Copy a file or a hierarchy of files (directory).

Returns

true if operation completed successfully.

Parameters

Parameter

Description

DestinationDirectory

Target path (either absolute or relative) to copy to - always a directory! (e.g. "/home/dest/").

Source

Source file (or directory) to copy (e.g. "/home/source/stuff").

bOverwriteAllExisting

Whether to overwrite everything that exists at target

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