WebAssembly / wasi-filesystem

Filesystem API for WASI
Other
179 stars 19 forks source link

Add an `access-at` function. #114

Closed sunfishcode closed 1 year ago

sunfishcode commented 1 year ago

Adds an access-at function which checks for a filesystem path being readable, writeable, or executable, or whether it exists, without performing an actual access.

This is similar to faccessat in POSIX, though it only supports the AT_EACCESS mode, where the effective user id is tested, as WASI doesn't otherwise expose the difference between the effective and real user IDs.