Skip to content

Method IsUnderDirectory ​

Namespace: Belay.Sync
Assembly: Belay.Sync.dll

IsUnderDirectory(string, string) ​

Determines if the specified path is under the given parent directory.

csharp
public static bool IsUnderDirectory(string path, string parentDirectory)

Parameters ​

path string

The path to check.

parentDirectory string

The parent directory path.

Returns ​

bool

True if the path is under the parent directory, false otherwise.

Released under the Apache License 2.0.