Function lrs::file::list_attr_buf

Creates an iterator over all attributes in a file.

Syntax

fn list_attr_buf<P>(path: P, buf: &'a mut [u8]) -> Result<ListAttrIter<'a>, Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path of the file whose attributes we're interested in.

buf

The buffer in which the attributes will be stored.

Return value

Returns an iterator over the attributes in the file.

Remarks

Use list_attr_size to get the required buffer size. It is an error for buf to have length 0.

If the path refers to a symbolic link, the link will be recursively resolved and an Iterator over the attributes of the first non-link target is returned.

If the path is relative, it will be interpreted relative to the current working directory.

See also