getDisks.lua
[INDEX]

ABSTRACT

Get the recordable disks list

Get all the USB or SD/MMC disks plugged in current device.

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

NONE

RETURNS

Return a JSON style result. The JSON format is:

{
/*OBJECT*/

"Result":
NUMBER

200 means OK, other error code meanings are similar to HTTP Response.

"Status":
"STRING"

Status message. Responsing result status of API executive, if there errors, it will describe reasons.

"Data": [
/*ARRAY*/

Returns all valid disks. Each array item is an object contains:

{
/*OBJECT*/

"Device":
"STRING"

Disk device identifier

"Type":
"STRING"

Disk type

usb

USB Disk

sdmmc

SD/MMC Storage Card

"Filesys":
"STRING"

File system

ntfs

NTFS

vfat

FAT32

"VolumnName":
"STRING"

The disk volumn name

"Total":
INTEGER

Disk total space (in MB)

"Used":
INTEGER

Used space (in MB)

"Free":
INTEGER

Free space (in MB)

"UsedPercent":
NUMBER

Used percent

}
]
}

OTHER NOTES

Device HTTP API, v1.0