だから私はこれを理解しようとして立ち往生しています。
fileEntry.file(function(file){
var reader = new FileReader();
reader.onloadend = function (e) {
var anchor = document.createElement("a");
anchor.setAttribute('href', "data:text/tsv;charset=UTF-8," + encodeURIComponent(this.result));
anchor.setAttribute("download", "log.tsv");
anchor.innerHTML = "Download Log Now";
document.body.appendChild(anchor);
alert("Download by clicking the damn link at the bottom.");
//delete the file?
}
reader.readAsText(file);
});
だから私の質問は、ファイルが読み取られた後にどのようにファイルを削除するのですか? fileEntry.remove(function(){console.log("File Removed.")});
コメントの場所を試してみましたが、うまくいきません。
何か案は?