breautek commented on issue #555: URL: https://github.com/apache/cordova-plugin-file/issues/555#issuecomment-1398979427
> @breautek why reading a file with this plugin needs to be so painful ;) ? The plugins that Apache maintains for the most part aims to follow the W3C spec, so that (in theory) once the spec is implemented by the actual browser/webview, the plugin can simply be removed and the code will continue to work. We don't necessary choose/design the API ourselves. Most of this stems from the aim to "cease to exist" as PhoneGap used to put it. But I do agree, the W3C spec API is garbage and that's probably why the [spec](https://www.w3.org/TR/file-system-api/) has been discontinued. With that being said, I don't foresee this plugin's API changing though. At least not until W3C has a new spec that replaces the one this plugin is based on, which afaik does not exists. Abstractions can be made to hide the meat of the filesystem API by creating utility classes/methods like your example, but I think that belongs in the community. If the plugin added those APIs, it will be very difficult to remove or potentially change in the future, should a new W3C spec be introduced. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
