DirEntry.isDir

Returns whether the file represented by this DirEntry is a directory.

struct DirEntry
@safe @property scope
bool
isDir
()

Examples

auto de1 = DirEntry("/etc/fonts/fonts.conf");
assert(!de1.isDir);

auto de2 = DirEntry("/usr/share/include");
assert(de2.isDir);

Meta