function result = isdir(dirpath)

%ISDIR is not recommended. Use ISFOLDER instead.
%
%ISDIR  True if argument is a directory.
%   ISDIR(DIR) returns a 1 if DIR is a directory and 0 otherwise.
%
%   See also FINFO, MKDIR.

%   P. Barnard 1-10-95
%   Copyright 1984-2020 The MathWorks, Inc.

result = ~isempty(dirpath) && isfolder(dirpath);
