<< fullpath files and folders functions isfile >>

isdir


Returns true is the input argument is an directory.


Syntax


r = isdir(dirname)

Input argument


dirname

a string: directory name to check.

Output argument


r

a logical: true if it is an directory.

Description


isdir(dirname) returns true if dirname is a directory.

isdir and isfolder are same.

Example


isdir(nelsonroot())
isdir([nelsonroot(), '/not_exist_dir'])

See also


mkdir, isfile, isfolder.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< fullpath files and folders functions isfile >>