C# Class ToolBelt.PathUtility

Extends the functionality of System.IO.Path.
Show file Open project: jlyonsmith/ToolBelt

Public Properties

Property Type Description
AltDirectorySeparator string
AltDirectorySeparatorChar char
AltPathSeparator string
AltPathSeparatorChar char
BadDirTrailChars char[]
DirectorySeparator string
DirectorySeparatorChar char
DriveSeparator string
DriveSeparatorChar char
ExtensionSeparator string
ExtensionSeparatorChar char
InvalidFileNameChars char[]
InvalidPathChars char[]
PathSeparator string
PathSeparatorChar char
UncPrefix string
WildcardChars char[]

Public Methods

Method Description
FindFileInPaths ( ParsedPathList paths, ToolBelt.ParsedPath file ) : ParsedPathList

Searches multiple directories for a file.

Private Methods

Method Description
PathUtility ( ) : System

Method Details

FindFileInPaths() public static method

Searches multiple directories for a file.
public static FindFileInPaths ( ParsedPathList paths, ToolBelt.ParsedPath file ) : ParsedPathList
paths ParsedPathList An array of paths to search. Each path is assumed to be a directory.
file ToolBelt.ParsedPath The file to search for. Any root or directory portion is ignored. Wildcards are not allowed.
return ParsedPathList

Property Details

AltDirectorySeparator public static property

public static string AltDirectorySeparator
return string

AltDirectorySeparatorChar public static property

Alternate character used to separate the directories
public static char AltDirectorySeparatorChar
return char

AltPathSeparator public static property

public static string AltPathSeparator
return string

AltPathSeparatorChar public static property

Alternate character used as the path separator
public static char AltPathSeparatorChar
return char

BadDirTrailChars public static property

public static char[] BadDirTrailChars
return char[]

DirectorySeparator public static property

public static string DirectorySeparator
return string

DirectorySeparatorChar public static property

Character used to separate the directories
public static char DirectorySeparatorChar
return char

DriveSeparator public static property

public static string DriveSeparator
return string

DriveSeparatorChar public static property

The drive separator character. Only Windows platforms use this.
public static char DriveSeparatorChar
return char

ExtensionSeparator public static property

public static string ExtensionSeparator
return string

ExtensionSeparatorChar public static property

Character used to separate the file extension from the main part of the file name.
public static char ExtensionSeparatorChar
return char

InvalidFileNameChars public static property

public static char[] InvalidFileNameChars
return char[]

InvalidPathChars public static property

public static char[] InvalidPathChars
return char[]

PathSeparator public static property

public static string PathSeparator
return string

PathSeparatorChar public static property

Character used to separate the paths
public static char PathSeparatorChar
return char

UncPrefix public static property

Prefix for UNC file paths.
public static string UncPrefix
return string

WildcardChars public static property

public static char[] WildcardChars
return char[]