Files
UnrealEngineUWP/Engine/Source/Programs/Unsync/Private/UnsyncSource.h
Yuriy ODonnell 8812f02854 unsync - Further split utility code into dedicated modules
#jira none

[CL 33917971 by Yuriy ODonnell in ue5-main branch]
2024-05-26 13:37:37 -04:00

46 lines
834 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UnsyncCommon.h"
namespace unsync {
enum class ESourceType : uint8 {
Unknown,
FileSystem,
Server,
ServerWithManifestHash,
};
struct FSourcePath
{
ESourceType Type = ESourceType::Unknown;
std::string Location; // utf-8
bool operator==(const FSourcePath& Other) const { return Type == Other.Type && Location == Other.Location; }
};
// Returns a list of alternative DFS paths for a given root
struct FDfsStorageInfo
{
std::wstring Server;
std::wstring Share;
bool IsValid() const { return !Server.empty() && !Share.empty(); }
};
struct FDfsMirrorInfo
{
std::wstring Root;
std::vector<FDfsStorageInfo> Storages;
};
FDfsMirrorInfo DfsEnumerate(const FPath& Root);
struct FDfsAlias
{
FPath Source;
FPath Target;
};
} // namespace unsync