File systemReference
isfolder
Check whether a workspace path is an existing folder.
Details#
Check whether a workspace path is an existing folder. True for an existing directory; false for files or missing paths. Invalid paths still cause an error.
Signature#
isfolder(path: string): booleanParameters#
| Parameter | Type | Description |
|---|---|---|
path | string | UTF-8 path relative to the application's workspace. |
Returns#
True for an existing directory; false for files or missing paths. Invalid paths still cause an error.
Examples#
Local example
makefolder("docs-example")
print(isfolder("docs-example")) -- true