Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24536] Android: Implement getExternalFilesDir in Ti.Filesystem

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterDaniel Ethier
AssigneeUnknown
Created2017-03-26T20:38:49.000+0000
Updated2018-02-28T19:55:07.000+0000

Description

Currently, Titanium SDK apps can get paths save data in applicationDataDirectory or externalDataStorage (which seems to go to the SD card if one is installed). Android provides primary external storage for apps. They can retrieve that path using the getExternalFilesDir function. See https://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) It would be helpful for apps to have access to this directory so they can save documents that are visible to the user (to transfer documents to another device) or to sync using apps like FolderSync. Documents saved in the private app data directory are not visible outside of the app itself. Please add a field to Ti.Filesystem to provide this directory.

Comments

  1. Sharif AbuDarda 2017-03-27

    Hello, Thanks for submitting the ticket. Our engineering team will consider it.

JSON Source