我的本地文件在/opt/local/testdir/test.txt
const requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem
const persistentStorage = navigator.persistentStorage || navigator.webkitPersistentStorage
const resolveLocalFileSystemURL = window.resolveLocalFileSystemURL || window.webkitResolveLocalFileSystemURL
const DEFAULT_MAX_SIZE = Number.MAX_SAFE_INTEGER
resolveLocalFileSystemURL(
'filesystem:file:///persistent//opt/local/testdir/test.txt',
entry => {
debug('resolveLocalFileSystemURL entry: %O', entry)
},
err => debug('resolveLocalFileSystemURL %O', err),
)
发生以下错误
It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.
我的目标是获取W3C File或FileList对象。