I use the HTML5 FileSystem API in the Chrome Packaged App to write to a log file. I want the user to be able to download this file, so I tried something line by line:
fs.root.getFile('log.txt', {create: false}, function(fileEntry) { var url = fileEntry.toURL();
This does not help, because the URL is similar to filesystem:chrome-extension://eekedjcagggbfigdmifkmhkjbhiklnpj/temporary/log.txt and it cannot be opened anywhere.
What technique would you recommend making the FileSystem API file in a packaged application downloadable?
Editing: after reading in Ben Well's reply letter, I realized that I would need to clarify even more what I want. I would be especially pleased if there was a method that would not imply loading the contents of the HTML5 file system API file, creating a blob from it and writing it to the path chosen by the user using the chrome.fileSystem API .
bfncs source share