JavaScript

A5.shell.getAppDir Method

Syntax

appDir = A5.shell.getAppDir();

Returns

appDirString

Returns the URL of the local directory where the App's files are located.

Description

Gets the directory where the App files are stored.

Discussion

The getAppDir() method returns the URL on the device's file system where an App's files are stored. This is separate from the directory where an App's data file are stored. See [getAppFileStorageDir()] to get the location of data files for an App.

Example

if (A5.shell) {
    var appDir = A5.shell.getAppDir();
    alert(appDir);
}