Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt Include
BrightScript Version Navigation Menu
BrightScript Version Navigation Menu
nopaneltrue
This object is used to report storage device usage information for storage devices.

Object Creation: The roStorageInfo objectis created with a parameter that specifies the path of the storage device. The path does not need to extend to the root of the storage device.

...

Returns an associative array containing details of the storage device hardware. For SD cards, the returned data may include the following:

sd_mfr_id

Integer

Card manufacturer ID as assigned by the SD Card Association

sd_oem_id

String

Two-character card OEM identifier as assigned by the SD Card Association

sd_product_name

String

Product name, assigned by the card manufacturer (5 bytes for SD, 6 bytes for MMC)

sd_spec_vers

Integer

Version of SD spec to which the card conforms

sd_product_rev

String

Product revision assigned by the card manufacturer

sd_speed_class

String

Speed class (if any) declared by the card

sd_au_size

Integer

Size of the SD AU in bytes.

 

 

Code Block
titleExample
si=CreateObject("roStorageInfo", "SD:/")
Print si.GetFreeInMegabytes(); "MiB free"

...