FUNCTION REFERENCE
isfolder
True for names that are existing local folders.
True for names that are existing local folders.
Syntax
tf = isfolder(name)Name is a character vector, string array or cell array of character vectors; the logical result has the size of a string or cell input. Relative names resolve against the engine current folder. Files, missing or empty names give false.
Example
isfolder(tempdir) % 1Differences from MATLAB: Network paths and URLs give false. The browser version has no files, so it always gives false.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.