resolvePath(baseFd:relativePath:)

Resolves a relative path with a file descriptor.

Declaration

func resolvePath(
    baseFd: Int32,
    relativePath: String
) -> String

Parameters

  • baseFd: The base directory WASI file descriptor.

  • relativePath: The relative path to expand.

Discussion

Used in the path_open syscall.

  • Returns a full path.