The File System Module in BAS
The File System module in Browser Automation Studio — read and write files, manage folders, move and copy, search, and bridge files with lists.
Most bots touch the disk: they read a list of accounts, save scraped data, organise downloaded images. The File System module is built to make that file and folder work simple.
What it’s for
The module exists to simplify working with files on your computer. It bundles the everyday operations: read a file, write to a file, get information about a file or folder, create and delete folders, move files and folders, copy files, read or write a file as a list, and search for files. If your task involves text files, images or folders, you’ll lean on this module constantly.
The actions, grouped
Reading and writing.
- Read file / Write to file — pull text out of a file or save text into one.
- Read file into a list / Write list to file — load a file so each line becomes a list element, or dump a list back to disk. This is the bridge between stored data and the data your bot works on in memory.
Folders and organisation.
- Create folder / Delete file or folder — set up and clean out directories.
- Move file or folder / Copy file — organise output, archive results, stage files for the next step.
Inspecting.
- Get info about a file or folder — check existence, size or other details before acting.
- File search — find files matching a pattern, useful for processing whatever landed in a downloads folder.
Where it fits
The File System module is the local-storage half of a bot’s I/O. Input often starts as a file you read into a list; output ends as files you write, move and organise. For input that must be distributed safely across many threads, reach for the Resources module instead — but for plain reading, writing and organising files on one machine, this module is the tool.
FAQ
How do I read input data from a file in BAS?
Use the File System module to read a file, or read a file straight into a list so each line becomes an element. For run-wide input distributed across threads, pair it with the Resources module.
Can BAS create, move and delete folders?
Yes. The File System module includes actions to create and delete folders, move files and folders, and copy files — everything you need to organise the output a bot produces.
- Browser Automation Studio: The Complete Practical GuideGuide
- Building Your First Bot in Browser Automation StudioA step-by-step walkthrough of creating your first working BAS bot — from a blank project to a flow that navigates, extracts data, and runs in multiple threads.
- Setting Up Proxies in Browser Automation StudioHow to configure proxies in BAS the right way — proxy types, per-thread assignment, rotation, and the checks that keep multi-account bots from getting flagged.
- Finding Elements in BAS: Selectors That Don't BreakHow element search works in Browser Automation Studio — CSS vs XPath selectors, why recorded ones break, and how to write selectors that survive page changes.