You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
nrath-js
added a commit
to nrath-js/fuse-backend-rs
that referenced
this issue
Dec 3, 2024
I have not been able to find any documentation for the
add_entry: &mut dyn FnMut(DirEntry<'_>) -> Result<usize>
argument that is passed toreaddir
. 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?The text was updated successfully, but these errors were encountered: