메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
FindMatchingFiles ( string sourceDir, |
public static ConvertWildcardPatternToRE ( string pattern ) : |
||
pattern | string | |
리턴 |
public static EnsureDirExists ( string path ) : void | ||
path | string | |
리턴 | void |
public static EnsureFileExists ( string path ) : void | ||
path | string | |
리턴 | void |
public static EnsureFileWriteable ( string path ) : void | ||
path | string | |
리턴 | void |
public static FindMatchingFiles ( string sourceDir, string namePattern, bool includeSubDirs ) : List |
||
sourceDir | string | |
namePattern | string | |
includeSubDirs | bool | |
리턴 | List |
public static GetDirectoryName ( string path ) : string | ||
path | string | |
리턴 | string |
public static GetMatchingFiles ( string pathPattern ) : List |
||
pathPattern | string | |
리턴 | List |
public static PathDifference ( string path1, string path2 ) : string | ||
path1 | string | |
path2 | string | |
리턴 | string |