[TIMOB-27193] Android: Ti.Filesystem.File.createFile() may alter location of specified path
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-10-03T12:58:29.000+0000 |
Affected Version/s | Release 8.0.2 |
Fix Version/s | Release 8.3.0 |
Components | Android |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2019-06-27T17:27:19.000+0000 |
Updated | 2019-10-03T12:58:29.000+0000 |
Description
If I build a file path using path.join(Ti.Filesystem.tempDirectory, "dir/file.txt") and then attempt to create the file, Android will actually ignore the file path/URL I passed in and will try to force it to be created under appdata-private.
https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/TiFileProxy.java#L172-L177
FR Passed, waiting on Jenkins build.
Bug fixed in SDK version 8.3.0.v20191002165629