FileHelper.GetRelativePath Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetRelativePath(String, String)

Get the relative path from one file or folder to another.

public static string GetRelativePath(string from, string to)

Parameters

from
System.String
to
System.String

Returns

System.String

The relative path from the start directory to the end path or to if the paths are not related.