Navigation
API > API/Developer > API/Developer/SourceControl > API/Developer/SourceControl/ISourceControlProvider > API/Developer/SourceControl/ISourceControlProvider/TryToDownloadFil-
References
| Module | SourceControl |
| Header | /Engine/Source/Developer/SourceControl/Public/ISourceControlProvider.h |
| Include | #include "ISourceControlProvider.h" |
| Source | /Engine/Source/Developer/SourceControl/Private/ISourceControlProvider.cpp |
virtual bool TryToDownloadFileFromBackgroundThread
&40;
const TSharedRef< class FDownloadFile > & InOperation,
const TArray< FString > & InFiles
&41;
Remarks
Executes the FDownloadFile operation, but unlike the Execute method this can be called from a background thread, this works because FDownloadFile is thread safe and it does not change the state of source control. NOTE: This is only intended for use by the virtualization module and will be deprecated at some point in the future when thread safety is built into the system. NOTE: This is only implemented for the perforce source control provider with no plans to extend this to other providers. True if the operation was a success, otherwise false.
Parameters
| Name | Description |
|---|---|
| InOperation | The download operation to be executed. |
| InFile | An array of depot paths for the files to download. |