chrome :18.0.1025.152 chrome.browserAction.onClicked.addListener(function(tab) { requestFS = window.requestFileSystem || window.webkitRequestFileSystem; requestFS(window.PERSISTENT, 1024*1024 /*1MB*/, function(fs) { fs.root.getFile('test.txt', {create: true}, function(fileEntry) { function onInitFs(fs) { fs.root.getFile('log.txt', {create: true, exclusive: true}, function(fileEntry) { }, errorHandler); } window.requestFileSystem(window.TEMPORARY, 1024*1024, onInitFs, errorHandler);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)