あるディレクトリをある場所から別の場所にコピーしたい。copyToApiを見つけたということを調べています。そのドキュメントで私は以下のようにドキュメントから簡単な例を見つけました
function win(entry) {
console.log("New Path: " + entry.fullPath);
}
function fail(error) {
alert(error.code);
}
function copyDir(entry) {
var parent = document.getElementById('parent').value,
newName = document.getElementById('newName').value,
parentEntry = new DirectoryEntry({fullPath: parent});
// copy the directory to a new directory and rename it
entry.copyTo(parentEntry, newName, success, fail);
}
ここで、ソースパス変数と宛先パス変数はどこにあるのか混乱していますか?誰かが私にこれの良い例を1つ提供できますか