FileSystem.iterateDirectory

iter(string arg1, thrown IoError arg2) iterateDirectory(string path, within Allocator* allocator)

Returns an iterator over the immediate entry names in a directory.

Remarks

Opening begins synchronously, but an open failure is delivered when the iterator is advanced. Entry order is native and unspecified. Each yielded name borrows one reusable iterator buffer and is valid only until the next iterator advancement or iterator destruction. Copy a name before retaining it.

Parameters

string
path

Directory path to enumerate.

within Allocator*
allocator

Allocation context for the iterator state.

Generated with campc 0.13.0-preview.1.