sqlite db をデータベース フォルダーにコピーしたいのですが、copyto api の使用方法がわかりません。
function win(entry) {
console.log("New Path: " + entry.fullPath);
}
function fail(error) {
alert(error.code);
}
function copyFile(entry) {
var parent = document.getElementById('parent').value,
parentEntry = new DirectoryEntry({fullPath: parent});
// copy the file to a new directory and rename it
entry.copyTo(parentEntry, "file.copy", success, fail);
}
エントリーとは?データベース パス フォームのアセット フォルダーはどこに書く必要がありますか? 最後の行で成功と言いましたが、それを定義していませんでしたか? 代わりに win と書く必要がありますか?