FPakPlatformFile::CopyFile

Copy a file. This will fail if the destination file already exists.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

IPlatformFile::CopyFile()

FPakPlatformFile::CopyFile()

References

Module

PakFile

Header

/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h

Include

#include "IPlatformFilePak.h"

Source

/Engine/Source/Runtime/PakFile/Private/IPlatformFilePak.cpp

Syntax

virtual bool CopyFile
(
    const TCHAR * To,
    const TCHAR * From,
    EPlatformFileRead ReadFlags,
    EPlatformFileWrite WriteFlags
)

Remarks

Copy a file. This will fail if the destination file already exists.

Returns

true if the file was copied sucessfully.

Parameters

Parameter

Description

To

File to copy to.

From

File to copy from.

ReadFlags

Source file read options.

WriteFlags

Destination file write options.