Click or drag to resize

DirectoryInfoCreateSubdirectory Method (String, String, DirectorySecurity, Boolean)

[AlphaFS] Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
public DirectoryInfo CreateSubdirectory(
	string path,
	string templatePath,
	DirectorySecurity directorySecurity,
	bool compress


Type: SystemString
The specified path. This cannot be a different disk volume.
Type: SystemString
The path of the directory to use as a template when creating the new directory.
Type: System.Security.AccessControlDirectorySecurity
The DirectorySecurity security to apply.
Type: SystemBoolean
When compresses the directory.

Return Value

Type: DirectoryInfo
The last directory specified in path.
Any and all directories specified in path are created, unless some part of path is invalid. The path parameter specifies a directory path, not a file path. If the subdirectory already exists, this method does nothing.
See Also