Esacode

Docs / Blocks / Data

Files on a worker

Reads files from a folder on the worker the flow runs on.

Runs on a worker (Python) Data Version 1.0 Code you can open and adapt

How it works

Give a folder on that worker (for example D:\Data\run-12 or /data/logs) and a pattern such as *.png or *.csv. Matching files are copied into the block's output, so the next blocks can use them on any worker. Large folders: lower the limit, or keep the next blocks on the same worker.

Outputs

OutputGivesWhat it is
Files
files
Files
File list
list
Table
csv
Live telemetry
telemetry
Live telemetryWhat the block sends while it runs, for views such as Chart or 3D view.

Settings

SettingDefaultWhat it does
Folder on the worker
folder
empty Full path, as seen by the worker.
Pattern
pattern
* For example *.png, run-*.csv
Include subfolders
recursive
on
At most (files)
limit
500
From 1 to 100000
At most (MB in total)
max_mb
200
From 1 to 100000

Where it runs

On one of your computers with the EsaSim worker: Any worker.

In its code, settings are ctx.params["key"], inputs ctx.inputs["id"] and outputs ctx.output("id", "name.ext"); see Custom blocks.

More in Data