C# Class Phun.Templating.PhunPath

Phun implementation for path.
Inheritance: IPath
Mostrar archivo Open project: noogen/phuncms

Public Methods

Method Description
extname ( string path ) : string

Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.

join ( string left, string right ) : string

Join all arguments together and normalize the resulting path.

normalize ( string path ) : string

Normalize a string path, taking care of '..' and '.' parts.

Method Details

extname() public method

Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
public extname ( string path ) : string
path string The path.
return string

join() public method

Join all arguments together and normalize the resulting path.
public join ( string left, string right ) : string
left string The left.
right string The right.
return string

normalize() public method

Normalize a string path, taking care of '..' and '.' parts.
public normalize ( string path ) : string
path string The path.
return string