DirectoryCreateDirectory Method (String, PathFormat) |
[AlphaFS] Creates all the directories in the specified path, applying the specified Windows security.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static DirectoryInfo CreateDirectory(
string path,
PathFormat pathFormat
)
Public Shared Function CreateDirectory (
path As String,
pathFormat As PathFormat
) As DirectoryInfo
public:
static DirectoryInfo^ CreateDirectory(
String^ path,
PathFormat pathFormat
)
static member CreateDirectory :
path : string *
pathFormat : PathFormat -> DirectoryInfo
Parameters
- path
- Type: SystemString
The directory to create. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
DirectoryInfoAn object that represents the directory at the specified path. This object is returned regardless of whether a directory at the specified path already exists.
Exceptions See Also