<< ls | Files and folders functions | pathsep >> |
mkdir(dirname) |
mkdir(parentdir, dirname) |
status = mkdir(dirname) |
status = mkdir(parentdir, dirname) |
[status, msg] = mkdir(dirname) |
[status, msg] = mkdir(parentdir, dirname) |
a string: directory name to create
a string: a directory in which the dirname directory will be created
a logical true or false
a string: error message
Creates a directory named dirname in the directory parent.
If no parent directory is specified the present working directory is used.
If directory is created or already existing, status is true, otherwise it will be false.
mkdir(tempdir(), 'subdir_example')
if isdir([tempdir(), 'subdir_example'])
disp('OK')
else
disp('NOT OK')
end
Version | Description |
---|---|
1.0.0 | initial version |
1.4.0 | input arguments support scalar string array type |
Allan CORNET