Confirmed users
716
edits
(Created page with "This is a very simple filesystem API based on the DeviceStorage API == API == partial interface Navigator { DeviceStorage getSandboxedFilesystem(...") |
No edit summary |
||
Line 48: | Line 48: | ||
readonly attribute FileHandle fileHandle; | readonly attribute FileHandle fileHandle; | ||
readonly attribute DOMString mode; | readonly attribute DOMString mode; | ||
readonly attribute boolean active; | |||
attribute long long? location; // Set to null on call to append | attribute long long? location; // Set to null on call to append | ||
FileRequest readAsArrayBuffer(long size); | FileRequest readAsArrayBuffer(long size); | ||
FileRequest readAsText(long size, | FileRequest readAsText(long size, optional DOMString encoding); | ||
FileRequest write(DOMString or ArrayBuffer or Blob value); | FileRequest write(DOMString or ArrayBuffer or ArrayBufferView or Blob value); | ||
FileRequest append(DOMString or ArrayBuffer or Blob value); | FileRequest append(DOMString or ArrayBuffer or ArrayBufferView or Blob value); | ||
FileRequest truncate(optional long long size); | |||
FileRequest getMetadata(MetadataParams params); | |||
FileRequest flush(); // fsync | |||
void close(); // Prevents any further requests from being placed against this lock | void close(); // Prevents any further requests from being placed against this lock | ||
void abort(); // Immediately releases lock and stops any pending | void abort(); // Immediately releases lock and stops any pending | ||
}; | |||
dictionary MetadataParameters { | |||
boolean size; | |||
boolean lastModified; | |||
}; | }; | ||