[ ] rename to fs to keep it shorter and better convey that we are working not just with files but file system
[ ] restructure API, try to align it on openat
openat (and there are more *at syscalls, I think) are meant to avoid a race condition
I think the design is to encourage working from the current directory, so we should shape our API for that
for example, the ReadFile actor should perhaps be a read_file() method on a Directory object / actor instead and maybe the start of working with the file system / files is to do fs.cwd() to get the current directory and work from there
I think this largely aligns with what Zig is doing, which would make sense, since it's a young language they have probably aligned their fs operations on openat & friends
[ ] map all syscall return values / errnos to exceptions
fs
to keep it shorter and better convey that we are working not just with files but file systemReadFile
actor should perhaps be aread_file()
method on a Directory object / actor instead and maybe the start of working with the file system / files is to dofs.cwd()
to get the current directory and work from there