Storage¶
Description¶
The Storage object provides common functionality for all storage implementations such as LocalStorage, InMemoryStorage and UsbStorage. Being an abstract base it can’t be instantiated.
› Inherits: | Object |
---|---|
› Inherited by: | InMemoryStorage, LocalStorage, UsbStorage, WebServerFilesStorage |
Properties¶
available¶
This property holds whether the storage is available. This typically applies to removable storage devices or network shares.
› Type: | Boolean |
---|---|
› Signal: | availableChanged() |
› Attributes: | Readonly |
bytesFree¶
This property holds the available capacity on the storage in bytes. It is not updated automatically and needs to be read whenever required.
› Type: | SignedBigInteger |
---|---|
› Attributes: | Readonly |
bytesTotal¶
This property holds the total capacity of the storage in bytes. It is not updated automatically and needs to be read whenever required.
› Type: | SignedBigInteger |
---|---|
› Attributes: | Readonly |
path¶
This property holds the absolute filesystem path of the storage.
› Type: | String |
---|---|
› Signal: | pathChanged() |
› Attributes: | Readonly |
readOnly¶
This property holds whether the storage can be accessed read only. Write accesses to the storage are only possible if this property is false
.
› Type: | Boolean |
---|---|
› Signal: | readOnlyChanged() |
› Attributes: | Readonly |