JavaScriptファイルシステムAPIを使用してディレクトリの名前を変更するにはどうすればよいですか?
私は以下のように試しました:
dirNameWithPath = '/MyPictures3/New Folder';
newDirName = 'newTitle';
dirPath = '/MyPictures3';
filesystem.root.getDirectory(dirNameWithPath, {}, function(dirEntry) {
dirEntry.moveTo(dirPath, newDirName, callback, errorHandler);
});
次のエラーが発生します。
FileError.INVALID_MODIFICATION_ERR