Trait async_fs::unix::DirEntryExt
source · [−]Expand description
Unix-specific extension methods for DirEntry
.
Required methods
Returns the underlying d_ino
field in the contained dirent
structure.
Examples
use async_fs::unix::DirEntryExt;
use futures_lite::stream::StreamExt;
let mut entries = async_fs::read_dir(".").await?;
while let Some(entry) = entries.try_next().await? {
println!("{:?}: {}", entry.file_name(), entry.ino());
}