System.MkDir
Delphi
procedure MkDir(const S: string);
procedure MkDir(P: PChar);
C++
extern DELPHI_PACKAGE void __fastcall MkDir(const UnicodeString S)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.pas System.hpp |
System | System |
Description
Creates a new subdirectory.
MkDir creates a new subdirectory with the path specified by string S or P.
The last item in the path cannot be an existing file name. MkDir creates only the last directory; it does not create parent directories, whereas ForceDirectories does.
Note: In Delphi, {$I+} handles run-time errors using exceptions. When using {$I-}, use IOResult to check for an I/O error.
See Also