Created
May 27, 2011 10:50
-
-
Save cbiggins/995029 to your computer and use it in GitHub Desktop.
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
function getPrefsFile() { | |
var prefsFile = air.File.applicationStorageDirectory.resolvePath("prefs.xml"); | |
// Does the storage file exist? | |
if (!prefsFile.exists) { | |
// Not there, so we'll copy the blank XML file from the app dir | |
original = air.File.applicationDirectory.resolvePath("prefs.xml"); | |
original.copyTo(prefsFile, true); | |
} | |
return prefsFile; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment