ReferenceFilesystem

item:GetName

Returns the display name of the chosen file or folder. The name is for presentation; it is not an unrestricted filesystem path.

Syntax

item:GetName() -> string

Returns

TypeDescription
stringFile or folder name.

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 = openfiledialog()
if item then
    print(item:GetName())
end

These are Game executor contracts. Check build requirements and session lifetimes before using them.