Skip to content

Conversation

@DaniilSNikulin
Copy link

from documentation for function readdir:

Currently, only some filesystems (among them: Btrfs, ext2, ext3,
and ext4) have full support for returning the file type in d_type.
All applications must properly handle a return DT_UNKNOWN

To avoid problems with not supported file system, is_dir flag additionally computed via function stat, which don't have same constraints.

In my case, DT_UNKNOWN was given from readdir, if sub-folder is mounted via sshfs.

@simonfuhrmann simonfuhrmann merged commit 69ad094 into simonfuhrmann:master Jun 8, 2020
@simonfuhrmann
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants