Skip to main content

File System

dev.hardware.file_system - wire path h\x - generated from fwMenuFileSystem.

change_directory

Change Directory. Changes current directory

Wire command: h\x\a

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.change_directory(path: str) -> Result
ow_status ow_hardware_file_system_change_directory(ow_device* dev, const char* path);
dev.hardware().file_system().change_directory(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.change_directory(path) # check dev.ok

create_directory

Create Directory. Creates a new directory

Wire command: h\x\c

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.create_directory(path: str) -> Result
ow_status ow_hardware_file_system_create_directory(ow_device* dev, const char* path);
dev.hardware().file_system().create_directory(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.create_directory(path) # check dev.ok

remove_file_or_directory

Remove File or Directory. Removes a file or directory

Wire command: h\x\r

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.remove_file_or_directory(path: str) -> Result
ow_status ow_hardware_file_system_remove_file_or_directory(ow_device* dev, const char* path);
dev.hardware().file_system().remove_file_or_directory(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.remove_file_or_directory(path) # check dev.ok

get_file_from_pc

Get File From PC. Downloads file to Free Wili

Wire command: h\x\f

ArgWire type
pathstring
sizedecS32
crc32decU32

Returns: none (Ok/Err only)

dev.hardware.file_system.get_file_from_pc(path: str, size: int, crc32: int) -> Result
ow_status ow_hardware_file_system_get_file_from_pc(ow_device* dev, const char* path, int32_t size, int32_t crc32);
dev.hardware().file_system().get_file_from_pc(path: &str, size: i32, crc32: i32) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.get_file_from_pc(path, size, crc32) # check dev.ok

send_file_to_pc

Send File To PC. Sends file to PC

Wire command: h\x\u

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.send_file_to_pc(path: str) -> Result
ow_status ow_hardware_file_system_send_file_to_pc(ow_device* dev, const char* path);
dev.hardware().file_system().send_file_to_pc(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.send_file_to_pc(path) # check dev.ok

Print File. Prints the File Content

Wire command: h\x\p

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.print_file(path: str) -> Result
ow_status ow_hardware_file_system_print_file(ow_device* dev, const char* path);
dev.hardware().file_system().print_file(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.print_file(path) # check dev.ok

create_blank_file

Create Blank File. Creates a blank file

Wire command: h\x\b

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.create_blank_file(path: str) -> Result
ow_status ow_hardware_file_system_create_blank_file(ow_device* dev, const char* path);
dev.hardware().file_system().create_blank_file(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.create_blank_file(path) # check dev.ok

edit_file

Edit File. Edits a text file

Wire command: h\x\e

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.edit_file(path: str) -> Result
ow_status ow_hardware_file_system_edit_file(ow_device* dev, const char* path);
dev.hardware().file_system().edit_file(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.edit_file(path) # check dev.ok

rename_or_move_file_directory

Rename or Move File Or Directory. Renames or Moves a File or Directory

Wire command: h\x\n

ArgWire type
pathstring
new_pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.rename_or_move_file_directory(path: str, new_path: str) -> Result
ow_status ow_hardware_file_system_rename_or_move_file_directory(ow_device* dev, const char* path, const char* new_path);
dev.hardware().file_system().rename_or_move_file_directory(path: &str, new_path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.rename_or_move_file_directory(path, new_path) # check dev.ok

list_directory

List Directory. lists the contents of a directory. Blank for current directory.

Wire command: h\x\l

ArgWire type
pathstring

Returns: none (Ok/Err only)

dev.hardware.file_system.list_directory(path: str) -> Result
ow_status ow_hardware_file_system_list_directory(ow_device* dev, const char* path);
dev.hardware().file_system().list_directory(path: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.list_directory(path) # check dev.ok

format_file_system

Format File System. reformats the internal flash

Wire command: h\x\t

ArgWire type
confirmstring

Returns: none (Ok/Err only)

dev.hardware.file_system.format_file_system(confirm: str) -> Result
ow_status ow_hardware_file_system_format_file_system(ow_device* dev, const char* confirm);
dev.hardware().file_system().format_file_system(confirm: &str) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.format_file_system(confirm) # check dev.ok

toggle_sd_card_host_select

Toggle SDCard Host. Toggles which host controls the SD card.

Wire command: h\x\s

Returns: none (Ok/Err only)

dev.hardware.file_system.toggle_sd_card_host_select() -> Result
ow_status ow_hardware_file_system_toggle_sd_card_host_select(ow_device* dev);
dev.hardware().file_system().toggle_sd_card_host_select() -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.toggle_sd_card_host_select() # check dev.ok

set_sd_card_host

SDCard Host Select. Connects the SD card to the main CPU (0) or the USB reader / PC (1).

Wire command: h\x\k

ArgWire type
hostdecS32

Returns: none (Ok/Err only)

dev.hardware.file_system.set_sd_card_host(host: int) -> Result
ow_status ow_hardware_file_system_set_sd_card_host(ow_device* dev, int32_t host);
dev.hardware().file_system().set_sd_card_host(host: i32) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.file_system.set_sd_card_host(host) # check dev.ok

Events

Spontaneous frames this menu emits (not command responses). Text events arrive as [*<id> ...] frames (Python: Transport.events; C: ow_poll_text_event; Rust: poll_event -> Event::Text); binary events use the binary API below. The on-device rthon binding does not receive event streams in v1.

fdir (text)

directory listing entry; kind is dir/fil, or end with size as the entry count

Payload fieldWire type
kindstring
namestring
sizedecU32