Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FAutoPackageBackup
Description
Deletes old backed-up package files until the provided amount of space (in bytes) is available to use in the backup directory. Fails if the provided amount of space is more than the amount of space the user has allowed for backups or if enough space could not be made.
| Name | PerformBackupSpaceMaintenance |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/PackageBackup.h |
| Include Path | #include "PackageBackup.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/PackageBackup.cpp |
static bool PerformBackupSpaceMaintenance
(
TArray < struct FBackupFileInfo > & InBackupFiles,
int64 InSpaceUsed,
int64 InSpaceRequired
)
true if the space was successfully provided, false if not or if the requested space was greater than the max allowed space by the user
Parameters
| Name | Remarks |
|---|---|
| InBackupFiles | File info of the files in the backup directory |
| InSpaceUsed | The amount of space, in bytes, the files in the provided array take up |
| InSpaceRequired | The amount of space, in bytes, to assure is available for the purposes of package backups |