New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Handles modifications concerning the file paths in the content providers

Definition

Constructors

C#
public FilePath()
C#
public FilePath(char pathSeparator)
Parameters:pathSeparatorchar

Properties

A character that separates the different parts of the path items.

C#
public virtual char Separator { get; }

Methods

Adds a trailing path separator if such is missing

C#
public string AddTrailingSeparator(string path)
Parameters:pathstring

The path that will be checked

Returns:

string

The result path must end with a path separator

Normalizes paths that contain parent references - /..

C#
public string NormalizeRelativePath(string path)
Parameters:pathstring

The path that will be normalized

Returns:

string

The normalized path that now points directly to its target