File

A File represents a Boomla file.

Syntax

new File() File

Create a new file on the temporary filesystem //temp.

Description

Reference to a Boomla file. Just like on traditional operating systems, Boomla files have an ID, the reference is ID based. Boomla guarantees that any code is always executed in ACID transactions, and during the transaction the entire filesystem is blocked from concurrent access. Thus it is impossible for any file references to brake due to concurrent access. Read: if it breaks, you broke it.

Examples

Basic example.

Creating multiple files in a row.

Calling new File() is equivalent to calling temp.new()