MkDir

Create a new directory.

Declaration

Source position: systemh.inc line 1457

  procedure MkDir(const s: shortstring);  Overload;
  procedure MkDir(const s: RawByteString);  Overload;
  procedure MkDir(const s: unicodestring);  Overload;

Description

Mkdir creates a new directory S.

For an example, see Rmdir .

Errors

Depending on the state of the {$I} switch, a runtime error can be generated if there is an error. In the {$I-} state, use IOResult to check for errors.

See also

Name Description
Chdir Change current working directory.
Rmdir Remove directory when empty.