Skip to content

Semantics of readdir's add_entry argument #196

Open
@nrath-js

Description

@nrath-js

I have not been able to find any documentation for the add_entry: &mut dyn FnMut(DirEntry<'_>) -> Result<usize> argument that is passed to readdir. Did I miss anything?

My best guess is that the return value represents a length, and that I need to check that the total length does not exceed the value of the size parameter. However, I am not sure if the return value is the length of the most recent entry (so I have to accumulate the total), or the total space used, or perhaps the remaining space?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions