Navigation

Operators and Keywords

Function List:

C++ API

: mkdir dir
: mkdir (parent, dir)
: [status, msg, msgid] = mkdir (…)

Create a directory named dir in the directory parent, creating any intermediate directories if necessary.

If dir is a relative path and no parent directory is specified then the present working directory is used.

If successful, status is 1, and msg and msgid are empty strings (""). Otherwise, status is 0, msg contains a system-dependent error message, and msgid contains a unique message identifier.

When creating a directory permissions will be set to 0777 - UMASK.

See also: rmdir, pwd, cd, umask.

Package: octave