Directory Methods

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The Directory type exposes the following members.

  Name Description
Public method Static member CreateDirectory Creates all directories and subdirectories in the specified path.
Public method Static member Delete(String) Deletes an empty directory from a specified path.
Public method Static member Delete(String, Boolean) Deletes the specified directory and, if indicated, any subdirectories and files in the directory.
Public method Static member EnumerateDirectories Returns an enumerable collection of directory names in a specified path.
Public method Static member EnumerateFiles Returns an enumerable collection of file names in a specified path.
Public method Static member EnumerateFileSystemEntries Returns an enumerable collection of file-system entries in a specified path.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Exists Determines whether the given path refers to an existing directory on disk.
Public method Static member GetCurrentDirectory Gets the current working directory of the application.
Public method Static member GetDirectories Gets the names of subdirectories (including their paths) in the specified directory.
Public method Static member GetFiles Returns the names of files (including their paths) in the specified directory.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member Move Moves a file or a directory and its contents to a new location.
Public method Static member SetCurrentDirectory Sets the application's current working directory to the specified directory.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show: