...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[ GarbageCollected, constructor(DOMString path, DOMString type) ] interface StorageInfo { Promise <bool> isReadOnly(); Promise <DOMString> getFilesystemType(); Promise <number> getDeviceSize(); Promise <StorageDeviceInfo> getDeviceInfo(); Promise <StorageStats> getStatistics(); } interface StorageDeviceInfo { attribute number size; attribute DOMString productName; //@Optional attribute DOMString oemID; //@Optional attribute DOMString auSize; //@Optional attribute DOMString productRev; //@Optional attribute DOMString mfrDate; //@Optional attribute DOMString serial; //@Optional attribute DOMString signalVoltage; //@Optional attribute DOMString uhsMode; //@Optional attribute number specVersion; //@Optional attribute DOMString speedClass; //@Optional attribute number mfrID; //@Optional attribute DOMString sataModel; //@Optional attribute DOMString sataVendor; //@Optional } interface StorageStats { attribute number blockSize; attribute number sizeBytes; attribute number bytesFree; attribute number filesUsed; attribute number filesFree; attribute bool isReadOnly; } |
Object Creation
To create an storageinfo object, first load the brightsign/storageinfo
module using the Require()
method. Then create an instance of the storageinfo class with a string value specifying the storage path.
...