PathUtilities.

GetDirectoryPathRelativeToDirectory(string, string) Method

Summary

Creates a relative path for a directory based on a given directory.

Syntax

public static string GetDirectoryPathRelativeToDirectory(string fromPath, string directoryPath)

Parameters

Name Type Description
fromPath string Contains the directory path that defines the start of the relative path.
directoryPath string The path of the base directory.

Return Value

Type Description
string The relative path from the start directory to the directory.