Table of Contents

Method IsPathRelative

Namespace
Alternet.Common
Assembly
Alternet.Common.v10.dll

IsPathRelative(string, string)

Determines directory or its sub-directories contains the file.

public static bool IsPathRelative(string fileName, string directory)

Parameters

fileName string

Source path to probe

directory string

Directory to probe

Returns

bool

True if file is contained in the directory; otherwise false.