-
Notifications
You must be signed in to change notification settings - Fork 0
Branch main Interface IFileSystem
github-actions[bot] edited this page Mar 22, 2026
·
103 revisions
Abstract file system interface. All file I/O in Aeostara goes through this interface, enabling platform-specific implementations and test mocking.
Read the entire contents of a file as a string.
Parameters:
-
path(string) — file path
Returns: string — the file contents
Errors: throws if the file does not exist or cannot be read
Write a string to a file, creating or overwriting it.
Parameters:
-
path(string) — file path -
content(string) — the content to write
Check if a file exists at the given path.
Parameters:
-
path(string) — file path
Returns: true if the file exists
Copy a file from one path to another.
Parameters:
-
from(string) — source file path -
to(string) — destination file path
Returns: true if the copy was successful