-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
confusion with directory documentation #47
Comments
looking at this example.. i'm guessing the embedded-sdmmc-rs/examples/test_mount.rs Lines 129 to 144 in ed1b7ea
|
we resolved |
I think 2. means you can’t create a file in a directory when the directory is open? Because then you could get iterator invalidation if the entries moved around. But I agree the wording is awful. |
A couple notes/questions:
open_root_dir
andopen_dir
both indicate:Open a directory. You can then read the directory entries in a random order using get_directory_entry.
Butget_directory_entry
doesn't exist in the code AFAIK. I seefind_directory_entry
anditerate_dir
so I assume this must just be left over cruft?open_root_dir
andopen_dir
return aDirectory
, the docs forclose_dir
indicate:Close a directory. You cannot perform operations on an open directory and so must close it if you want to do something with it.
butclose_dir
consumes a directory so how do you use it after its closed? For instance, how would you supply a directory toopen_file_in_dir
?The text was updated successfully, but these errors were encountered: