Function Directory.currentIsDir

Returns whether the current item processed with the last getNext call is a directory (. and .. are considered directories).

bool currentIsDir() nothrow @nogc const;