Creates an iterator over the entries in a directory.
fn iter<S>(path: S, error: Option<&'a mut Result<(), Errno>>) -> Iter<'a>
where S: ToCString,| Name | Description |
|---|---|
| path | The path of the directory to be inspected. |
| error | Optional storage space for an error that occurs during the iteation. |
If the error argument is not None, an error that occurs during the iteration will be stored in its place. After the iteration the error variable should be inspected for an error.