Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Ti.Filesystem.applicationDataDirectory: A read/write directory accessible by your app. Place your application-specific files in this directory. The contents of this directory persist until you remove the files or until the user uninstalls the application.
  • Ti.Filesystem.resourcesDirectory: A read-only directory where your application resources are located; this directory corresponds to the project/Resources directory in Studio. The contents of this directory persist until the user uninstalls the application.
  • Ti.Filesystem.tempDirectory: A read-write directory where your application can place temporary files. The contents of this directory persist until your application fully closes, at which time the operating system could delete your files.
  • Ti.Filesystem.externalCacheDirectory: A read-write directory where your application can cache data on external storage device (SD card), if such a location exists. Check first with Ti.Filesystem.isExternalStoragePresent() (which returns a Boolean).  Only available on Android.
  • Ti.Filesystem.externalStorageDirectory: A read-write directory on the external storage device (SD card) accessible by your app, if such a location exists. Check first with Ti.Filesystem.isExternalStoragePresent() (which returns a Boolean).  Available only for the Android and Windows platforms.
  • Ti.Filesystem.applicationCacheDirectory: A read-write directory where your application can cache data.  The contents of this directory persist after your application fully closes but at the discretion of the operating system.  
    • For the Android platform, the cache quota will change over time dependent on the app usage, and system wide storage, the data will be persisted until disk space is required.  
    • For the iOS platform, there is no size limit but the data only remains there until iOS cleans the directory if it requires the disk space.
    • For the Windows platform, there is not size limit, and the data stored here will be ignored when a users backs up their storage to the cloud.

...