Skip to contents

File I/O Blocks

Blocks for reading and writing various file formats

new_read_block()
Unified file reading block
new_write_block()
Unified file writing block
new_download_block()
Download-only file export block

Format Registry

Teach blockr.io a file format or a container – a location holding several tables – and build read expressions from what is registered.

register_format()
Register a file format
register_container()
Register a container
format_read_expr()
Read expression for a single file
container_read_expr()
Read expression for a container
container_kinds()
What containers are registered
container_list_tables() container_table_info()
Discover the tables in a container

Declared Options

An entry declares what it accepts, and blocks generate their settings fields from the answer.

opt_choice() opt_text() opt_number() opt_flag()
Declare a format's reader options
format_options()
The options a format declares
source_options()
The options a source offers
member_options()
The options a set of files understands
format_options_ui()
Fields for a set of declared options
format_options_values()
Read declared option fields back off the inputs
format_options_update()
Push option values back into declared option fields

Utilities

Helper functions for file handling and configuration

gear_band_ui()
Gear button and settings band
file_category()
File category from extension
file_extensions()
Supported file extensions
resolve_and_check() within_dirs()
File-access verification for path-based blocks
format_extension()
File extension for a write format
new_data_dir_option()
Data directory board option
path_input_ui() path_input_server()
Path input widget
read_file_expr()
Create a read expression for a single file
resolve_data_dir()
Resolve paths against the board's data directory
write_file_expr()
Create a write expression for a single file
write_formats()
Supported write formats