Class: Dewasm::Pozeiden::WasmModule::Rt::WASI::WasiDir

Inherits:
Struct
  • Object
show all
Defined in:
lib/dewasm/pozeiden/wasm_module.rb

Overview

A directory descriptor: either a preopen (preopen_name set to the guest-visible path passed in preopens:) or a directory the guest opened itself via path_open (preopen_name nil). entries is the fd_readdir listing cache, populated lazily. Kept in the prelude (rather than with the rest of the filesystem logic) because initialize builds one per preopen unconditionally, so it must be available whenever any WASI import is used, not only when a filesystem syscall is.

Instance Attribute Summary collapse

Instance Attribute Details

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



450
451
452
# File 'lib/dewasm/pozeiden/wasm_module.rb', line 450

def entries
  @entries
end

#host_pathObject

Returns the value of attribute host_path

Returns:

  • (Object)

    the current value of host_path



450
451
452
# File 'lib/dewasm/pozeiden/wasm_module.rb', line 450

def host_path
  @host_path
end

#preopen_nameObject

Returns the value of attribute preopen_name

Returns:

  • (Object)

    the current value of preopen_name



450
451
452
# File 'lib/dewasm/pozeiden/wasm_module.rb', line 450

def preopen_name
  @preopen_name
end