Function lrs::file::list_attr_size

Retrieves the buffer size required for all attributes in a file.

Syntax

fn list_attr_size<P>(path: P) -> Result<usize, Errno>
    where P: ToCString,

Arguments

NameDescription
path

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

Return value

Returns the number of bytes required.

Remarks

If the path refers to a symbolic link, the link will be recursively resolved and the required buffer size of the first non-link target will be retrieved.

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

See also