Skip to content
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#

Luau
isfolder(path: string): boolean

Parameters#

ParameterTypeDescription
pathstringUTF-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

Luau
makefolder("docs-example")
print(isfolder("docs-example")) -- true