Skip to content

GetAppRelativePath Method ​

Definition ​

  • Namespace: JASE.IO
  • Assembly: JASE.dll

string GetAppRelativePath(string input, bool trimLeading = null) ​

csharp
string GetAppRelativePath(string input, bool trimLeading = null)

Returns a file path relative to the application root.

Parameters ​

NameDescription
inputThe absolute or application-rooted path to convert.
trimLeadingIf , leading directory separators are removed from the resulting relative path.

Returns ​

A path relative to ApplicationPath, using forward slashes as directory separators, or if input is or empty.