Skip to content

File Operations 🟑 BETA

File operations are gated by the drive feature and use single-argument file keywords.

Where BASIC scripting sits in the Developer guide

Example

content = READ "inbox/report.txt"

What it does

The catalog registers READ, WRITE, LIST, COPY, MOVE, DELETE FILE, UPLOAD, DOWNLOAD, CREATE FILE, READ TEXT, COMPRESS, EXTRACT, GENERATE PDF and MERGE PDF.

Keyword β†’ effect

Keyword Effect
READ Load a file
WRITE Store content
LIST Enumerate a folder
COPY / MOVE Relocate a file
DOWNLOAD / UPLOAD Move data across the boundary

Limits

  • Listed in the closed keyword catalog in botserver/src/basic/keywords/mod.rs; the runtime reference publishes no exact signature for it, so this page does not invent one.
  • Listed in the closed keyword catalog in botserver/src/basic/keywords/mod.rs; the runtime reference publishes no exact signature for it, so this page does not invent one.
  • Available only when the drive Cargo feature is enabled (botserver/src/basic/keywords/mod.rs).
  • READ FILE, WRITE FILE, LIST FILES and GET FILE are phantoms and are not available.