Table of Contents

Method IsPathWithinAnyDirectory

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

IsPathWithinAnyDirectory(string, IReadOnlyList<string>)

Returns true if fullPath is located inside any of the supplied directory roots.

public static bool IsPathWithinAnyDirectory(string fullPath, IReadOnlyList<string> allowedRoots)

Parameters

fullPath string
allowedRoots IReadOnlyList<string>

Returns

bool