isdir

Returns true if dir is a directory.

Syntax

isdir(dir)

Inputs

dir
Path to directory.
Type: char | string

Outputs

R
Numerical equivalent true/false.

Example

Simple isdir example.

R = isdir('c:\tests')
R = 1