1e2aa3eea4
when using readdir/getdents the file type might be 'DT_UNKNOWN' (depending on the filesystem). Do a fstatat in that case to get the file type. Since maybe the callback wants to do a stat anyway, pass it there (if done) adds two new helpers: 'file_type_from_file_stat': uses a FileStat struct to get the file type 'get_file_type': calls fstatat to determine the file_type Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
src | ||
tests | ||
Cargo.toml |