ReadonlycanWhether the storage can be formatted.
ReadonlycanWhether the storage can be mounted.
ReadonlycanWhether the storage can be shared.
ReadonlydefaultWhether this is the default storage.
ReadonlyisWhether the storage is removable.
ReadonlylowWhether the storage has low disk space.
Event handler for when the storage changes.
ReadonlystorageThe name of the storage area.
Adds a file to the storage.
The content to add.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsAdds a file to the storage with a specific name.
The content to add.
The name to give the file.
Appends content to an existing file.
The content to append.
The name of the file to append to.
Deletes a file from storage.
The name of the file to delete.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Enumerates the files in the storage.
Optionaloptions: DeviceStorageEnumerationParametersParameters to filter the enumeration.
Enumerates the files in a specific path.
The path to enumerate.
Optionaloptions: DeviceStorageEnumerationParametersParameters to filter the enumeration.
Enumerates the editable files in the storage.
Optionaloptions: DeviceStorageEnumerationParametersParameters to filter the enumeration.
Enumerates the editable files in a specific path.
The path to enumerate.
Optionaloptions: DeviceStorageEnumerationParametersParameters to filter the enumeration.
Retrieves a file from storage.
The name of the file to retrieve.
Retrieves an editable file from storage.
The name of the file to retrieve.
Gets the root directory of the storage.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
Provides access to the device's storage areas.
Note
Pref: "device.storage.enabled"