File¶
An asset loaded from a file on disk.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
Description¶
An object that represents an asset loaded from a file on a local disk. Files
generate a temporary asset ID in the form rbxtemp:// which can be used in
Studio without uploading the asset, but will be destroyed when the
File is destroyed or when the Studio session ends. Temporary asset IDs
are not shared across collaborative
sessions.
The default Name of a File instance will be the filename on disk, excluding the path but including the extension.
Inheritance¶
Properties¶
| Member | Signature | Summary |
|---|---|---|
Size |
Size: int64 |
The size of the file on disk, in bytes. |
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetBinaryContents |
File:GetBinaryContents(): string |
Reads the contents of the File as a string. |
GetTemporaryId |
File:GetTemporaryId(): ContentId |
Gets a rbxtemp:// asset ID for this File. |
Roblox reference: File
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.