The Filesystem library reads and writes files under Athena’s workspace folder. Paths are relative to that folder, and writes are limited to a set of allowed file extensions so scripts cannot drop arbitrary executables. It also loads files as Luau and brings local assets into the game.

Functions

Watching for changes

To react to files changing instead of polling them, create a DirectoryWatcher. It reports creations, writes, deletions and renames inside a workspace folder, using the same relative paths these functions take.

File dialogs

Athena also exposes the native file pickers. Each opens a modal system dialog and returns what the user chose, or nothing if they cancelled.
Dialogs return full machine paths, while every function above takes a workspace-relative path. The two cannot be mixed: a dialog result is not something readfile will accept.

Aliases