Port.N.FlashDrive

If detected, returns the mount point of a USB flash drive. For Windows this will be a drive letter, otherwise it will be a volume mount point.

Syntax: see Call Structure

{

"method": "cbrx_connection_get",

"params": [

connection-handle,

"Port.N.FlashDrive"

]

}

connection-handle is the Connection Handles as an integer.

Returns:

{

"Path:": "location",

"Capacity":total-memory,

"Available":available-memory

}

Output Description
location Location the disk is in the host system
total-memory Total memory on disk
available-memory Memory on disk not being used
Examples:

Windows:

Copy
{
    "json": "2.0",
    "id": 0,
    "Path:": "H:",
    "Capacity": 123123123,
    "Available": 123123
}

macOSĀ®:

Copy
{
    "json": "2.0,
    "id": 0,
    "Path:": "/Volumes/SanDisk1",
    "Capacity": 123123123,
    "Available": 123123
}

Linux:

Copy
{
    "json": "2.0",
    "id": 0,
    "Path:": "/media/bob/SanDisk1",
    "Capacity": 123123123,
    "Available": 123123
}

If there is no flash drive, the return value will simply be false.

This same information will also be provided in PortsInfo, PortInfo.N or cbrx_discover('all') in a "FlashDrive" field where applicable and present. If not applicable or preset, this field will be absent.