UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::SavePackageUtilities::FPackageBackupUtility Class Reference

Public Member Functions

 FPackageBackupUtility (const FPackagePath &InPackagePath)
 
void RecordMovedFile (const FString &OriginalPath, const FString &NewLocation)
 
void RecordNewFile (const FString &NewLocation)
 
void RestorePackage ()
 
void DiscardBackupFiles ()
 

Detailed Description

A utility that records the state of a package's files before we start moving and overwriting them. This provides an easy way for us to restore the original state of the package incase of failures while saving.

Constructor & Destructor Documentation

◆ FPackageBackupUtility()

UE::SavePackageUtilities::FPackageBackupUtility::FPackageBackupUtility ( const FPackagePath InPackagePath)
inline

Member Function Documentation

◆ DiscardBackupFiles()

void UE::SavePackageUtilities::FPackageBackupUtility::DiscardBackupFiles ( )
inline

Deletes the backed up files once they are no longer required.

◆ RecordMovedFile()

void UE::SavePackageUtilities::FPackageBackupUtility::RecordMovedFile ( const FString &  OriginalPath,
const FString &  NewLocation 
)
inline

Record a file that has been moved. These will need to be moved back to restore the package.

◆ RecordNewFile()

void UE::SavePackageUtilities::FPackageBackupUtility::RecordNewFile ( const FString &  NewLocation)
inline

Record a newly created file that did not exist before. These will need deleting to restore the package.

◆ RestorePackage()

void UE::SavePackageUtilities::FPackageBackupUtility::RestorePackage ( )
inline

Restores the package to it's original state


The documentation for this class was generated from the following file: