USourceControlHelpers::CopyFile

Use currently set source control provider to copy a file. Blocks until action is complete.

Unreal Engine C++ API Reference > Developer > SourceControl > USourceControlHelpers

References

   
Module SourceControl
Header /Engine/Source/Developer/SourceControl/Public/SourceControlHelpers.h
Include #include "SourceControlHelpers.h"
Source /Engine/Source/Developer/SourceControl/Private/SourceControlHelpers.cpp
static bool CopyFile
(
    const [FString](API\Runtime\Core\Containers\FString) & InSourceFile,
    const [FString](API\Runtime\Core\Containers\FString) & InDestFile,
    bool bSilent
)

Remarks

Use currently set source control provider to copy a file.

Blocks until action is complete. true if succeeded, false if failed and can call LastErrorMsg() for more info.

Parameters

Name Description
InSourceFile Source file string to copy from - can be either fully qualified path, relative path, long package name, asset path or export text path (often stored on clipboard)
InDestFile Source file string to copy to - can be either fully qualified path, relative path, long package name, asset path or export text path (often stored on clipboard). If package, then uses same extension as source file.
bSilent if false (default) then write out any error info to the Log. Any error text can be retrieved by LastErrorMsg() regardless.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library