item:IsFolder
Reports whether the chosen item represents a folder. Folder items support List and MakeFolder rather than file reads.
Syntax
item:IsFolder() -> boolean
Returns
| Type | Description |
|---|---|
boolean | Whether this is a folder item. |
Description
Call this method on an item returned by a file dialog. Items belong to the current session and should not be serialized for reuse after reconnecting.
Example
local item = openfolderdialog()
if item then
print(item:IsFolder())
end
These are Game executor contracts. Check build requirements and session lifetimes before using them.
