Comment by zokier 13 hours ago in what way does scandir avoid stat syscalls? 1 comment zokier Reply stabbles 11 hours ago Because you get an iterator over `struct dirent`, which includes `d_type` for popular filesystems.Notice that this avoids `lstat` calls; for symlinks you may still need to do a stat call if you want to stat the target.
stabbles 11 hours ago Because you get an iterator over `struct dirent`, which includes `d_type` for popular filesystems.Notice that this avoids `lstat` calls; for symlinks you may still need to do a stat call if you want to stat the target.
Because you get an iterator over `struct dirent`, which includes `d_type` for popular filesystems.
Notice that this avoids `lstat` calls; for symlinks you may still need to do a stat call if you want to stat the target.