C# Class ToolBelt.PathUtility

Extends the functionality of System.IO.Path.
Mostrar archivo 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_oe static_oe property

public static string AltDirectorySeparator
return string

AltDirectorySeparatorChar public_oe static_oe property

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

AltPathSeparator public_oe static_oe property

public static string AltPathSeparator
return string

AltPathSeparatorChar public_oe static_oe property

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

BadDirTrailChars public_oe static_oe property

public static char[] BadDirTrailChars
return char[]

DirectorySeparator public_oe static_oe property

public static string DirectorySeparator
return string

DirectorySeparatorChar public_oe static_oe property

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

DriveSeparator public_oe static_oe property

public static string DriveSeparator
return string

DriveSeparatorChar public_oe static_oe property

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

ExtensionSeparator public_oe static_oe property

public static string ExtensionSeparator
return string

ExtensionSeparatorChar public_oe static_oe property

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

InvalidFileNameChars public_oe static_oe property

public static char[] InvalidFileNameChars
return char[]

InvalidPathChars public_oe static_oe property

public static char[] InvalidPathChars
return char[]

PathSeparator public_oe static_oe property

public static string PathSeparator
return string

PathSeparatorChar public_oe static_oe property

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

UncPrefix public_oe static_oe property

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

WildcardChars public_oe static_oe property

public static char[] WildcardChars
return char[]