最終更新:2017-10-06 (金) 02:12:04 (2393d)
window.requestFileSystem
Top / window.requestFileSystem
ウェブ アプリケーションからサンドボックス化したファイル システムにアクセスを要求
アプリケーションのデータを格納するファイルシステムを取得
https://developer.mozilla.org/ja/docs/Web/API/LocalFileSystem
void requestFileSystem (in unsigned short type, in unsigned long long size, in FileSystemCallback successCallback, in optional ErrorCallback errorCallback);
type
successCallback
function onFileSystemSuccess(fileSystem) { var directoryEntry = fileSystem.root; var directoryReader = directoryEntry.createReader(); directoryReader.readEntries(getFileName, fail); }
メモ
- 初めて requestFileSystem() を呼び出したときに、そのアプリケーション用の新しいストレージが作成されます