WasiPreopenedDirectory Class
A directory that a WASI module can access (see WasiOptions.PreopenedDirectories).
public sealed class WasiPreopenedDirectoryConstructors
| Name | Description |
|---|---|
| WasiPreopenedDirectory(string, WasiFileSystem) | Initializes a new instance of the WasiPreopenedDirectory class. |
WasiPreopenedDirectory(string, WasiFileSystem)
WasiOptions.csInitializes a new instance of the WasiPreopenedDirectory class.
public WasiPreopenedDirectory(string guestPath, WasiFileSystem fileSystem)Parameters
guestPathstring- The path of the directory for the module (
fd_prestat_dir_name), such as/,/dataor.: the C library of WASI (wasi-libc) opens the paths that start with it in this directory. fileSystemWasiFileSystem- The files of the directory.
Exceptions
ArgumentExceptionguestPathis empty or contains a null character.
Properties
| Name | Description |
|---|---|
| FileSystem | Gets the files of the directory. |
| GuestPath | Gets the path of the directory for the module. |