Table of Contents

Method ResolveAuthorizedHostPath

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

ResolveAuthorizedHostPath(string, IReadOnlyList<AllowedDirectory>, WorkspacePathAccess)

Resolves and authorizes an agent path against current directory grants, including symlink and access checks.

public static string ResolveAuthorizedHostPath(string requestedPath, IReadOnlyList<AllowedDirectory> allowedDirectories, WorkspacePathAccess requiredAccess)

Parameters

requestedPath string
allowedDirectories IReadOnlyList<AllowedDirectory>
requiredAccess WorkspacePathAccess

Returns

string