Created
May 19, 2011 15:17
-
-
Save kosso/980999 to your computer and use it in GitHub Desktop.
Convert a new Titanium url filesystem app property to the old path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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