Skip to content

Instantly share code, notes, and snippets.

@kosso
Created May 19, 2011 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosso/980999 to your computer and use it in GitHub Desktop.
Save kosso/980999 to your computer and use it in GitHub Desktop.
Convert a new Titanium url filesystem app property to the old path
var applicationDataDirectoryPath = Ti.Filesystem.applicationDataDirectory.slice(0,Ti.Filesystem.applicationDataDirectory.length - 1).replace('file://localhost','').replace(/%20/g,' ');
// Drops the trailing slash
// Removes file://localhost
// Replace %20 with a space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment