Метод | Описание | |
---|---|---|
Create ( |
Creates the specified directory. Note: Unlike System.IO.Directory.CreateDirectory(System.String), this method only creates the last directory in path. |
|
Delete ( |
Deletes the specified empty directory.
|
|
Delete ( |
Deletes files from the given path.
|
|
EnumerateDirectories ( |
Returns a enumerable containing the directory names of the specified directory.
|
|
EnumerateDirectories ( |
Returns a enumerable containing the directory names of the specified directory that match the specified search pattern.
|
|
EnumerateFileSystemEntries ( |
Returns a enumerable containing the file and directory names of the specified directory.
|
|
EnumerateFileSystemEntries ( |
Returns a enumerable containing the file and directory names of the specified directory that match the specified search pattern.
|
|
EnumerateFiles ( |
Returns a enumerable containing the file names of the specified directory.
|
|
EnumerateFiles ( |
Returns a enumerable containing the file names of the specified directory that match the specified search pattern.
|
|
Exists ( |
Returns a value indicating whether the specified path refers to an existing directory. Note that this method will return false if any error occurs while trying to determine if the specified directory exists. This includes situations that would normally result in thrown exceptions including (but not limited to); passing in a directory name with invalid or too many characters, an I/O error such as a failing or missing disk, or if the caller does not have Windows or Code Access Security (CAS) permissions to to read the directory. |
|
Move ( |
Метод | Описание | |
---|---|---|
BeginFind ( string normalizedPathWithSearchPattern, |
||
EnumerateFileSystemEntries ( |
||
EnumerateFileSystemIterator ( string normalizedPath, string normalizedSearchPattern, bool includeDirectories, bool includeFiles ) : IEnumerable |
||
IsCurrentOrParentDirectory ( string directoryName ) : bool | ||
IsDirectory ( FileAttributes attributes ) : bool |
public static Create ( |
||
path |
/// A |
|
Результат | void |
public static Delete ( |
||
path |
/// A |
|
Результат | void |
public static Delete ( |
||
path | The path to delete files from. | |
recursively | bool | Whether to recurse through the directory and find all child directories and files /// and delete those |
Результат | void |
public static EnumerateDirectories ( |
||
path |
/// A |
|
Результат | IEnumerable |
public static EnumerateDirectories ( |
||
path |
/// A |
|
searchPattern | string |
/// A |
Результат | IEnumerable |
public static EnumerateFileSystemEntries ( |
||
path |
/// A |
|
Результат | IEnumerable |
public static EnumerateFileSystemEntries ( |
||
path |
/// A |
|
searchPattern | string |
/// A |
Результат | IEnumerable |
public static EnumerateFiles ( |
||
path |
/// A |
|
Результат | IEnumerable |
public static EnumerateFiles ( |
||
path |
/// A |
|
searchPattern | string |
/// A |
Результат | IEnumerable |
public static Exists ( |
||
path |
/// A |
|
Результат | bool |
public static Move ( |
||
sourcePath | ||
targetPath | ||
Результат | void |