PathUtilities.

GetFilePathRelativeToDirectory(string, string) Method

Summary

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

Syntax

public static string GetFilePathRelativeToDirectory(string fromPath, string directoryPath)

Parameters

Name Type Description
fromPath string Contains the file 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 file to the directory.