isfolder

Returns true is the input argument is an directory.

Syntax

  • r = isfolder(dirname)

Input argument

  • dirname - a string: directory name to check.

Output argument

  • r - a logical: true if it is an directory.

Description

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

Example

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

See also

mkdir, isfile, isdir.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated