Struct

std::fs::Directory!

source
struct Directory! { ... }

An open directory: owns one DIR *, which close releases. No raw handle is extracted, and no safe code outside makes one.

Methods

method nextsource

fn next(&self) -> Result[Option[DirEntry!], Error] { ... }

The next entry other than . and .., Ok.(None) at the end, in the order the system lists them.

method closesource

fn close(self) -> Result[(), Error] { ... }

Releases the handle, whatever closedir reports.