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() ~ StringReturn
| Type | Description |
|---|---|
| String | an 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) ~ StringParameters
| Name | Type | Description |
|---|---|---|
| org | String | the name of your organization |
| app | String | the name of your application |
Return
| Type | Description |
|---|---|
| String | UTF-8 string of the user directory in platform-dependent notation |