All Bundles

Filesystem

Filesystem helper functions

Operations

GetBasePath

Get the directory where the application was run from. This is where the application data directory is.

function : GetBasePath() ~ String
Return
TypeDescription
Stringan absolute path in UTF-8 encoding to the application data directory

GetPrefPath

Use this function to get the "pref dir". This is meant to be where the application can write personal files (Preferences and save games, etc.) that are specific to the application. This directory is unique per user and per application.

function : GetPrefPath(org:String, app:String) ~ String
Parameters
NameTypeDescription
orgStringthe name of your organization
appStringthe name of your application

Return
TypeDescription
StringUTF-8 string of the user directory in platform-dependent notation