Directory Methods

Directory Methods

 

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateDirectory(String)

Creates all directories and subdirectories in the specified path unless they already exist.

System_CAPS_pubmethodSystem_CAPS_staticCreateDirectory(String, DirectorySecurity)

Creates all the directories in the specified path, unless the already exist, applying the specified Windows security.

System_CAPS_pubmethodSystem_CAPS_staticDelete(String)

Deletes an empty directory from a specified path.

System_CAPS_pubmethodSystem_CAPS_staticDelete(String, Boolean)

Deletes the specified directory and, if indicated, any subdirectories and files in the directory.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateDirectories(String)

Returns an enumerable collection of directory names in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateDirectories(String, String)

Returns an enumerable collection of directory names that match a search pattern in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateDirectories(String, String, SearchOption)

Returns an enumerable collection of directory names that match a search pattern in a specified path, and optionally searches subdirectories.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateFiles(String)

Returns an enumerable collection of file names in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateFiles(String, String)

Returns an enumerable collection of file names that match a search pattern in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateFiles(String, String, SearchOption)

Returns an enumerable collection of file names that match a search pattern in a specified path, and optionally searches subdirectories.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateFileSystemEntries(String)

Returns an enumerable collection of file names and directory names in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateFileSystemEntries(String, String)

Returns an enumerable collection of file names and directory names that match a search pattern in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticEnumerateFileSystemEntries(String, String, SearchOption)

Returns an enumerable collection of file names and directory names that match a search pattern in a specified path, and optionally searches subdirectories.

System_CAPS_pubmethodSystem_CAPS_staticExists(String)

Determines whether the given path refers to an existing directory on disk.

System_CAPS_pubmethodSystem_CAPS_staticGetAccessControl(String)

Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for a specified directory.

System_CAPS_pubmethodSystem_CAPS_staticGetAccessControl(String, AccessControlSections)

Gets a DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for a specified directory.

System_CAPS_pubmethodSystem_CAPS_staticGetCreationTime(String)

Gets the creation date and time of a directory.

System_CAPS_pubmethodSystem_CAPS_staticGetCreationTimeUtc(String)

Gets the creation date and time, in Coordinated Universal Time (UTC) format, of a directory.

System_CAPS_pubmethodSystem_CAPS_staticGetCurrentDirectory()

Gets the current working directory of the application.

System_CAPS_pubmethodSystem_CAPS_staticGetDirectories(String)

Returns the names of subdirectories (including their paths) in the specified directory.

System_CAPS_pubmethodSystem_CAPS_staticGetDirectories(String, String)

Returns the names of subdirectories (including their paths) that match the specified search pattern in the specified directory.

System_CAPS_pubmethodSystem_CAPS_staticGetDirectories(String, String, SearchOption)

Returns the names of the subdirectories (including their paths) that match the specified search pattern in the specified directory, and optionally searches subdirectories.

System_CAPS_pubmethodSystem_CAPS_staticGetDirectoryRoot(String)

Returns the volume information, root information, or both for the specified path.

System_CAPS_pubmethodSystem_CAPS_staticGetFiles(String)

Returns the names of files (including their paths) in the specified directory.

System_CAPS_pubmethodSystem_CAPS_staticGetFiles(String, String)

Returns the names of files (including their paths) that match the specified search pattern in the specified directory.

System_CAPS_pubmethodSystem_CAPS_staticGetFiles(String, String, SearchOption)

Returns the names of files (including their paths) that match the specified search pattern in the specified directory, using a value to determine whether to search subdirectories.

System_CAPS_pubmethodSystem_CAPS_staticGetFileSystemEntries(String)

Returns the names of all files and subdirectories in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticGetFileSystemEntries(String, String)

Returns an array of file names and directory names that that match a search pattern in a specified path.

System_CAPS_pubmethodSystem_CAPS_staticGetFileSystemEntries(String, String, SearchOption)

Returns an array of all the file names and directory names that match a search pattern in a specified path, and optionally searches subdirectories.

System_CAPS_pubmethodSystem_CAPS_staticGetLastAccessTime(String)

Returns the date and time the specified file or directory was last accessed.

System_CAPS_pubmethodSystem_CAPS_staticGetLastAccessTimeUtc(String)

Returns the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last accessed.

System_CAPS_pubmethodSystem_CAPS_staticGetLastWriteTime(String)

Returns the date and time the specified file or directory was last written to.

System_CAPS_pubmethodSystem_CAPS_staticGetLastWriteTimeUtc(String)

Returns the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last written to.

System_CAPS_pubmethodSystem_CAPS_staticGetLogicalDrives()

Retrieves the names of the logical drives on this computer in the form "<drive letter>:\".

System_CAPS_pubmethodSystem_CAPS_staticGetParent(String)

Retrieves the parent directory of the specified path, including both absolute and relative paths.

System_CAPS_pubmethodSystem_CAPS_staticMove(String, String)

Moves a file or a directory and its contents to a new location.

System_CAPS_pubmethodSystem_CAPS_staticSetAccessControl(String, DirectorySecurity)

Applies access control list (ACL) entries described by a DirectorySecurity object to the specified directory.

System_CAPS_pubmethodSystem_CAPS_staticSetCreationTime(String, DateTime)

Sets the creation date and time for the specified file or directory.

System_CAPS_pubmethodSystem_CAPS_staticSetCreationTimeUtc(String, DateTime)

Sets the creation date and time, in Coordinated Universal Time (UTC) format, for the specified file or directory.

System_CAPS_pubmethodSystem_CAPS_staticSetCurrentDirectory(String)

Sets the application's current working directory to the specified directory.

System_CAPS_pubmethodSystem_CAPS_staticSetLastAccessTime(String, DateTime)

Sets the date and time the specified file or directory was last accessed.

System_CAPS_pubmethodSystem_CAPS_staticSetLastAccessTimeUtc(String, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last accessed.

System_CAPS_pubmethodSystem_CAPS_staticSetLastWriteTime(String, DateTime)

Sets the date and time a directory was last written to.

System_CAPS_pubmethodSystem_CAPS_staticSetLastWriteTimeUtc(String, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC) format, that a directory was last written to.

Return to top
Show:
© 2016 Microsoft