Error Set Error [src]

Alias for std.fs.Dir.IteratorError

Errors

AccessDenied
InvalidUtf8

WASI-only. The path of an entry could not be encoded as valid UTF-8. WASI is unable to handle paths that cannot be encoded as well-formed UTF-8. https://github.com/WebAssembly/wasi-filesystem/issues/17#issuecomment-1430639353

SystemResources
Unexpected UnexpectedError

The Operating System returned an undocumented error code.

This error is in theory not possible, but it would be better to handle this error than to invoke undefined behavior.

When this error code is observed, it usually means the Zig Standard Library needs a small patch to add the error code to the error set for the respective function.

Source

const IteratorError = error{ AccessDenied, SystemResources, /// WASI-only. The path of an entry could not be encoded as valid UTF-8. /// WASI is unable to handle paths that cannot be encoded as well-formed UTF-8. /// https://github.com/WebAssembly/wasi-filesystem/issues/17#issuecomment-1430639353 InvalidUtf8, } || posix.UnexpectedError