Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level 4/Files and folders
Level 4 · Working with data

Files and folders

Create folders, list files, and copy, move, rename and delete files safely in a practice folder.

Intermediate≈ 18 min (estimate)Windows, macOSWorkflow engine-tested
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.

PlatformDefault valueWhat to do
macOS~/Documents/Station AcademyNothing; ~ means your home folder.
Windows~/Documents/Station AcademyChange 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

ActivityUse it to
File Operationcopy, move, rename, delete a file, or create_folder (it also creates missing parent folders and does nothing if the folder exists)
List Filesget a list of file paths in a Folder Path, optionally with a Filter such as *.csv
Write Filecreate a text file or append to one
Read Fileread 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

File Operation · List Files · List Length · Write File

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.