# 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

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

## See also

[mkdir](mkdir), [isfile](isfile), [isdir](isdir).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
