Titanium.App.appURLToPath

function
0.2.0
           
Convert the given app URL to a filesystem path. App URLs generally have the form 'app://subdir/resource.html' and resolve to a fileystem path rooted in the application resources directory.

Arguments

This function takes no arguments.

Return Type

String

Code Examples

Using App.appURLToPath

var path = Titanium.Filesystem.getFile(
        Titanium.App.appURLToPath("app://index.html"));
    var path2 = Titanium.Filesystem.getFile(
        Titanium.App.getHome(), "Resources", "index.html")
    // At this point path and path2 should refer to the same file.