Table of Contents

Method TryGetContainingDirectory

Namespace
Oscova.Agents.Utilities
Assembly
Oscova.Agents.dll

TryGetContainingDirectory(string, IReadOnlyList<AllowedDirectory>, out AllowedDirectory?)

Finds the most specific allowed directory that contains fullPath.

public static bool TryGetContainingDirectory(string fullPath, IReadOnlyList<AllowedDirectory> allowedDirectories, out AllowedDirectory? containingDirectory)

Parameters

fullPath string
allowedDirectories IReadOnlyList<AllowedDirectory>
containingDirectory AllowedDirectory?

Returns

bool