Daniel's XL Toolbox NG
Bovender.PathHelpers Class Reference

Static Public Member Functions

static string GetDirectoryPart (string path)
 Extracts the directory information from path . If path is an existing directory, the entire path will be returned. Otherwise, the return value of System.IO.Path.GetDirectoryName() will be returned. More...
 
static string GetFileNamePart (string path)
 Extracts the file name from path . If path is an existing directory, an empty string will be returned. Otherwise, the return value of System.IO.Path.GetFileName() will be returned. More...
 
static string GetDirectoryPart (string path)
 Extracts the directory information from path . If path is an existing directory, the entire path will be returned. Otherwise, the return value of System.IO.Path.GetDirectoryName() will be returned. More...
 
static string GetFileNamePart (string path)
 Extracts the file name from path . If path is an existing directory, an empty string will be returned. Otherwise, the return value of System.IO.Path.GetFileName() will be returned. More...
 

Member Function Documentation

◆ GetDirectoryPart() [1/2]

static string Bovender.PathHelpers.GetDirectoryPart ( string  path)
inlinestatic

Extracts the directory information from path . If path is an existing directory, the entire path will be returned. Otherwise, the return value of System.IO.Path.GetDirectoryName() will be returned.

Parameters
pathPath to examine.
Returns
path or result of System.IO.Path.GetFileName().

◆ GetDirectoryPart() [2/2]

static string Bovender.PathHelpers.GetDirectoryPart ( string  path)
inlinestatic

Extracts the directory information from path . If path is an existing directory, the entire path will be returned. Otherwise, the return value of System.IO.Path.GetDirectoryName() will be returned.

Parameters
pathPath to examine.
Returns
path or result of System.IO.Path.GetFileName().

◆ GetFileNamePart() [1/2]

static string Bovender.PathHelpers.GetFileNamePart ( string  path)
inlinestatic

Extracts the file name from path . If path is an existing directory, an empty string will be returned. Otherwise, the return value of System.IO.Path.GetFileName() will be returned.

Parameters
pathPath to examine.
Returns
String.Empty or return value of System.IO.Path.GetFileName().

◆ GetFileNamePart() [2/2]

static string Bovender.PathHelpers.GetFileNamePart ( string  path)
inlinestatic

Extracts the file name from path . If path is an existing directory, an empty string will be returned. Otherwise, the return value of System.IO.Path.GetFileName() will be returned.

Parameters
pathPath to examine.
Returns
String.Empty or return value of System.IO.Path.GetFileName().

The documentation for this class was generated from the following file: