Documentation

IO

Namespace

Filesystem input/output.

Manages a file reading or writing stream.

Manages a file reading stream from a file source, such as a plugin's zip or folder contents.

Gets the absolute path for a file in your plugin's storage folder. This is typically C:\Users\Username\OpenplanetNext\PluginStorage\YourPluginIdentifier. When calling this function and the folder doesn't exist yet, it will automatically be created for you.

Returns string

Gets the absolute path for a file in the data folder. This is typically C:\Users\Username\OpenplanetNext

Returns string

Gets the absolute path for a file in the game's applicationfolder. This is where your game is installed, for example D:\Games\Trackmania

Returns string

Gets the absolute path for a file in the game's user folder. This what the game considers the user folder, for example C:\Users\Username\Documents\Trackmania. Note that it is possible for this function to return only the given filename without any absolute path, in case the game doesn't have the necessary info, but you should consider this to happen very rarely (if ever).

Returns string

Checks if the given path exists.

Returns bool

Gets the size of the given file.

Returns uint64

Gets the last modified time of the given file.

Returns int64

Checks if the given path exists.

Returns bool

Deletes the folder at the given location. When recursive is false, the directory is only deleted if it is empty. Please be careful when setting recursive to true.

Lists files and folders in the current folder. If recursive is true, it will only return files.

Returns string[]@

Copies text on the clipboard.

The file mode to put the file stream in.