When I'm calling getEditable on the DeviceStorageAPI I'm presented with an object that has the following keys:
slice, name, type, size, mozSlice, lastModifiedDate, mozFullPath. Oh and instanceof File is true which kinda gives it away :-)
This is a File object rather than a FileHandle, which it should be according to the documentation (
https://wiki.mozilla.org/WebAPI/DeviceStorageAPI). Is this a bug or am I missing something?
Here's some code:
var req = this.storage.getEditable(filename);
req.onsuccess = function(e) {
var fileHandle = e.target.result;
alert(fileHandle instanceof File); // true
alert(fileHandle instanceof FileHandle); // false
};