isfolder
Checks whether a directory exists in Workspace.
Syntax
Signature
isfolder(Path: string) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Path | string | Path relative to the sandboxed Workspace. |
Returns
| Type | Description |
|---|---|
boolean | True for an existing directory. |
Notes
A missing path returns false. Invalid paths and filesystem errors raise a Luau error.
Example
Luau
print(isfolder("Examples"))