[Overview][Constants][Types][Procedures and functions] Reference for unit 'BaseUnix' (#rtl)

FpMkdir

Create a new directory

Declaration

Source position: line 0

function FpMkdir(

  path: pChar;

  Mode: TMode

):cInt;

function FpMkdir(

  path: AnsiString;

  Mode: TMode

):cInt;

Description

FpMkDir creates a new directory Path, and sets the new directory's mode to Mode. Path can be an absolute path or a relative path. Note that only the last element of the directory will be created, higher level directories must already exist, and must be writeable by the current user.

On succes, 0 is returned. if the function fails, -1 is returned.

Errors

Extended error information can be retrieved using fpGetErrno.

See also

fpGetCWD

  

Retrieve the current working directory.

fpChDir

  

Change current working directory.