| 1 |
def get_usb_devices() -> list[tuple[int, int, int, str | None, str | None, str | None]]: |
| 2 |
"Get list of connected USB devices. Returns a list of tuples. Each tuple is of the form (vendor_id, product_id, bcd, manufacturer, product, serial number)." |
| 3 |
pass |
| 4 |
|
| 5 |
def get_usb_drives() -> list[tuple[str, int, int, int, str | None, str | None, str | None]]: |
| 6 |
"Get list of mounted drives. Returns a list of tuples, each of the form (name, bsd_path)." |
| 7 |
pass |
| 8 |
|
| 9 |
def get_mounted_filesystems() -> dict[str, str]: |
| 10 |
"Get mapping of mounted filesystems. Mapping is from BSD name to mount point." |
| 11 |
pass |
| 12 |
|
| 13 |
def user_locale() -> str | None: |
| 14 |
"user_locale() -> The name of the current user's locale or None if an error occurred" |
| 15 |
pass |
| 16 |
|
| 17 |
def date_format() -> str | None: |
| 18 |
"date_format() -> The (short) date format used by the user's current locale" |
| 19 |
pass |
| 20 |
|
| 21 |
def is_mtp_device(vendor_id: int, product_id: int, bcd: int, serial: str | bytes) -> bool | None: |
| 22 |
"is_mtp_device(vendor_id, product_id, bcd, serial) -> Return True if the specified device has an MTP interface" |
| 23 |
pass |