USourceControlHelpers::CopyFileUnderSourceControl

Helper function to copy a file into our 'source controlled' directories, handling checkout/add etc.

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 CopyFileUnderSourceControl
(
    const [FString](API\Runtime\Core\Containers\FString) & InDestFile,
    const [FString](API\Runtime\Core\Containers\FString) & InSourceFile,
    const [FText](API\Runtime\Core\Internationalization\FText) & InFileDescription,
    [FText](API\Runtime\Core\Internationalization\FText) & OutFailReason
)

Remarks

Helper function to copy a file into our 'source controlled' directories, handling checkout/add etc.

Blocks until action is complete. Older C++ only version of CopyFile(). Success or failure of the operation

Parameters

Name Description
InDestFile The path to the destination file
InSourceFile The path to the source file
InFileDescription Description of the file to display to the user, e.g. "Text" or "Image"
OutFailReason Text describing why the operation failed

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library