How to use navigator instead of window.webkitStorageInfo HTML5 File-system API?

前端 未结 3 1694
無奈伤痛
無奈伤痛 2020-12-08 21:02

So there is a similar post found here html-5-filesystem-access-type-error. However, I\'m not very satisfied with the conclusion because I do not feel it actually answered th

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 21:25

    Recently, i've spent some time creating an abstraction layer for the Filesystem API with Persistent Storage called Chromestore.js. I've fixed this error in the abstraction layer by using the same solution talked about here. But with this API, there's no need to worry about it and it's clean.

    https://github.com/summera/chromestore.js

    It provides some additional functionality that is pretty handy as well. It definitely needs to be expanded upon, which I plan on doing soon. Any suggestions/feedback is much appreciated! This should make it easier for those using the FileSystem API. Especially for those trying to store large amounts of data retrieved from remote servers.

    Examples and documentation are here: https://github.com/summera/chromestore.js/blob/master/chromestore-api.md

    I think this has the potential to be expanded and do some really neat things with data and the Filesystem API.

    Cheers!

提交回复
热议问题