Navigation
API > API/Plugins > API/Plugins/StormSyncCore > API/Plugins/StormSyncCore/FStormSyncCoreUtils
Description
Figures out the files that needs to be synced based on local and remote list of dependencies.
Returns a list of FStormSyncFileModifierInfo based on the provided list of file dependencies (most likely coming from remote and part of sync request / response message transaction) from which we extract package names and gather the local state via GetAvaFileDependenciesFromPackageNames().
A list of FStormSyncFileModifierInfo is then based on those two list of file dependencies:
- If missing locally, a FStormSyncFileModifierInfo is added with Addition operation
- If present but with mismatched FileSize, a FStormSyncFileModifierInfo is added with Overwrite operation
- If present but with mismatched FileHash, a FStormSyncFileModifierInfo is added with Overwrite operation
- If present but with exact same FileSize and FileHash, no FStormSyncFileModifierInfo is added
| Name | GetSyncFileModifiers |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/StormSync/Source/StormSyncCore/Public/StormSyncCoreUtils.h |
| Include Path | #include "StormSyncCoreUtils.h" |
| Source | /Engine/Plugins/VirtualProduction/StormSync/Source/StormSyncCore/Private/StormSyncCoreUtils.cpp |
static TArray < FStormSyncFileModifierInfo > GetSyncFileModifiers
(
const TArray < FName > & InPackageNames,
const TArray < FStormSyncFileDependency > & InRemoteDependencies
)
List of FStormSyncFileModifierInfo indicating files that are either missing or dirty
Parameters
| Name | Remarks |
|---|---|
| InPackageNames | List of top level package names (from which we gather references) to base the diffing on |
| InRemoteDependencies | List of FStormSyncFileDependency to base our diffing against |