- Before this lesson
- Loops
- You will learn to
- Set up a practice folder with a variable
- List files with a filter
- Copy, move, rename and delete files
- Work safely on test copies
- Sample files
- practice-folder-setup.station.json · station-academy-samples.zip
The practice folder
All Level 4 samples keep their files in the folder stored in the variable folder.
| Platform | Default value | What to do |
|---|---|---|
| macOS | ~/Documents/Station Academy | Nothing; ~ means your home folder. |
| Windows | ~/Documents/Station Academy | Change it once in the Variables panel, for example to C:\Users\you\Documents\Station Academy. Windows does not understand ~. |
Download station-academy-samples.zip, unzip it, and put sales.csv, contacts.csv, products.json and orders.xlsx into that folder.
The activities
| Activity | Use it to |
|---|---|
| File Operation | copy, move, rename, delete a file, or create_folder (it also creates missing parent folders and does nothing if the folder exists) |
| List Files | get a list of file paths in a Folder Path, optionally with a Filter such as *.csv |
| Write File | create a text file or append to one |
| Read File | read a text file into a variable |
Run the setup sample
Import practice-folder-setup.station.json, check the folder variable, and run it. It creates inbox with four harmless test files and reports what it found.
Working safely
- Test on copies, in a practice folder, before you point a workflow at real files.
- Delete removes the file; it does not go to the Bin or Trash. Prefer move to an archive folder until you trust the workflow.
- Build paths from variables,
{{folder}}/inbox, so you change one place when the folder moves. - Do not hard-code your personal user folder in workflows you share.
Activities in this lesson
Saved only in this browser.
Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.