FileTransferCommands extension

Registers the file-transfer and OmnyDrive local commands — :download, :upload and :drive — on a LocalCommandRegistry.

These commands need local filesystem access (dart:io) and OmnyDrive, so they cannot compile to JavaScript and are kept out of the browser-safe default set (LocalCommandRegistry.withDefaults). Native embedders such as the CLI opt in with LocalCommandRegistry.withDefaults()..addFileTransferCommands().

on

Methods

addFileTransferCommands() → void

Available on LocalCommandRegistry, provided by the FileTransferCommands extension

Adds :download, :upload and :drive to this registry.