Table of Contents

Method TryResolveToAgentPath

Namespace
Oscova.Agents.Utils
Assembly
Oscova.Agents.dll

TryResolveToAgentPath(string, IReadOnlyList<AllowedDirectory>, out string)

Converts a resolved host path back to the most specific agent-facing allowed-directory path.

public static bool TryResolveToAgentPath(string hostPath, IReadOnlyList<AllowedDirectory> allowedDirectories, out string agentPath)

Parameters

hostPath string
allowedDirectories IReadOnlyList<AllowedDirectory>
agentPath string

Returns

bool