FileSystem

Functions to read and write files

Constructor

new FileSystem()

Methods

readSceneFileSync(path) → {string}

Reads a file that was created with writeSceneFileSync

Parameters:
NameTypeDescription
pathstring

The file path

Returns:
Type: 
string

unlinkSceneFileSync(path)

Deletes a file

Parameters:
NameTypeDescription
pathstring

The file path

writeSceneFileSync(path, content)

Creates and writes to a file that will only be available for this specific scene

Parameters:
NameTypeDescription
pathstring

The file path

contentstring

The content to write