mustBeFolder
Checks that input path refers to folder.
Syntax
- mustBeFolder(var)
- mustBeFolder(var, argPosition)
- C++: void mustBeFolder(const ArrayOfVector& args, int argPosition)
Input argument
- var - a variable: a scalar string array or row vector characters array.
- argPosition - a positive integer value: Position of input argument.
Description
mustBeFolder checks that input path refers to folder or raise an error.
Example
mustBeFolder(tempdir())
mustBeFolder('hello_nelson')
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET