36std::expected<AssetStorageSavings, std::string>
66std::expected<std::vector<AssetFileAlias>,
std::string>
Definition assetimport.h:11
constexpr const char * ASSET_ALIASES_FILE
The alias-table filename for logical paths and their physical backing files.
Definition assetstorage.h:14
std::expected< AssetStorageSavings, std::string > DeduplicateAssetFiles(const std::filesystem::path &defaults)
Replace byte-identical generated files with aliases.
void RemoveAssetTree(const std::filesystem::path &path, std::error_code &error)
Delete a tree after restoring directory owner-write permissions, without following symlinks.
std::optional< std::string > FinalizeGeneratedAssetPacks(const std::filesystem::path &defaults)
Remove empty subdirectories and write permissions from generated packs, excluding mod packs.
std::expected< std::vector< AssetFileAlias >, std::string > ReadAssetFileAliases(const std::filesystem::path &pack, const std::filesystem::path &defaults)
Read and validate an alias table, including its physical targets.
A logical file backed by a physical file in the same pack or the default pack.
Definition assetstorage.h:17
std::filesystem::path target
Definition assetstorage.h:19
bool fromDefault
Definition assetstorage.h:20
std::filesystem::path path
Definition assetstorage.h:18
The number and total byte size of files removed from freshly converted generated packs.
Definition assetstorage.h:24
std::uintmax_t bytes
Definition assetstorage.h:26
std::uintmax_t files
Definition assetstorage.h:25