Function Directory.fileExists

Returns whether the target file exists. The argument can be relative to the current directory, or an absolute path.

bool fileExists (
  const(String) path
) nothrow @nogc;