FileSystem - stingray.FileSystem namespace reference - Stingray Lua API Reference

stingray.FileSystem namespace reference

Description

Provides utilities for working with the local file system.

See in particular project_path(), which provides the absolute path to the current project folder.

Functions

Parameters
This function does not accept any parameters.
Returns

string

Absolute path of the AppData special folder.

Available only on Windows platforms.

Parameters

path :

string

The path of the file

Returns

boolean

return true if the file exists, false if not

Parameters

path :

string

The path of the file system

Returns
This function does not return any values.

You can use the empty string for the directory if you want a file system that represents the entire disk. Need to call this first.

Parameters

path :

string

The path of the directory to create

Returns

boolean

return true if the directory was created, false if there was an error

Parameters
This function does not accept any parameters.
Returns

string

Absolute path of the project folder.

Parameters

path :

string

The path of the file to delete

Returns

integer

return 0 if there was no error

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.