Function existsAsDir

Checks if the path exists as a directory.

bool existsAsDir (
  const(string) path
) @trusted;

bool existsAsDir (
  const(Path) path
) @trusted;

This is like std.file.isDir, but returns false instead of throwing if the path doesn't exist.