[TIMOB-11817] Rework FileSystem API
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | TiAPI |
Labels | rock_solid, ti.next |
Reporter | Ingo Muschenetz |
Assignee | Chris Barber |
Created | 2012-11-19T04:05:07.000+0000 |
Updated | 2018-11-16T15:28:26.000+0000 |
Description
We need to rework the FileSystem API, perhaps as a module
The biggest problem with the FileSystem API is parity. You can't even tell if something is a file or a directory on iOS. As far as Mobile Web is concerned, the FileSystem architecture supports multiple backends. The one and only backend today is local storage. I'd like to add a IndexedDB backed storage system, but IndexedDB is completely async, so it's not compatible with the Titanium FileSystem API.
We should make it like node.js. This means Ti.FileSystem goes bye bye. You would require('fs') to get the FileSystem API. We should expose methods that are async friendly. Doing it this way allows us to:
No comments