Method | Description | |
---|---|---|
ConvertWildcardPatternToRE ( string pattern ) : |
Converts a pattern containing ? and * characters into a case- insensitive regular expression.
|
|
EnsureDirExists ( string path ) : void |
Checks if the specified directory exists, throwing an exception if it doesn't.
|
|
EnsureFileExists ( string path ) : void |
Checks if the specified path exists, throwing an exception if it doesn't.
|
|
EnsureFileWriteable ( string path ) : void |
Checks if the specified path can be written to.
|
|
FindMatchingFiles ( string sourceDir, string namePattern, bool includeSubDirs ) : List |
Given a starting directory and a filename pattern, returns a list paths of files that match the name pattern.
|
|
GetBytes ( string str ) : byte[] |
Convert a string to a byte array, using ASCII encoding.
|
|
GetDirectoryName ( string path ) : string |
Returns the name of the directory, given a path to a directory
|
|
GetMatchingFiles ( string pathPattern ) : List |
Given a path containing wildcards, returns the file(s) that match pattern.
|
|
PathDifference ( string path1, string path2 ) : string |
Returns the part of path2 that is not in path1.
|
Method | Description | |
---|---|---|
FindMatchingFiles ( string sourceDir, |
public static ConvertWildcardPatternToRE ( string pattern ) : |
||
pattern | string | |
return |
public static EnsureDirExists ( string path ) : void | ||
path | string | |
return | void |
public static EnsureFileExists ( string path ) : void | ||
path | string | |
return | void |
public static EnsureFileWriteable ( string path ) : void | ||
path | string | |
return | void |
public static FindMatchingFiles ( string sourceDir, string namePattern, bool includeSubDirs ) : List |
||
sourceDir | string | |
namePattern | string | |
includeSubDirs | bool | |
return | List |
public static GetBytes ( string str ) : byte[] | ||
str | string | |
return | byte[] |
public static GetDirectoryName ( string path ) : string | ||
path | string | |
return | string |
public static GetMatchingFiles ( string pathPattern ) : List |
||
pathPattern | string | |
return | List |
public static PathDifference ( string path1, string path2 ) : string | ||
path1 | string | |
path2 | string | |
return | string |