FUNCTION REFERENCE
mustBeFolder
Validate that value refers to an existing folder.
Validate that value refers to an existing folder.
Syntax
mustBeFolder(A)Throws an error if A is not text or any path does not name an existing folder.
Example
mkdir("sub"); mustBeFolder("sub")Differences from MATLAB: None.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.