Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Implementation edit is for fixing errors and enhancing with metadata.

Instead of changing the code of the snippet, consider creating another D implementation.

Other implementations
import "os"
_, err := os.Stat(fp)
b := !os.IsNotExist(err)
uses sysutils;
b := FileExists(fp);
b = File.exist?(fp)
let _b = std::path::Path::new(_fp).exists();
import os
b = os.path.exists(fp)
$b = file_exists($fp);
import System.Directory
b = doesFileExist fp
my $b = -f $fp;
bool b = File.Exists(fp);
const fs = require('fs');
const b = fs.existsSync(fp);
from pathlib import Path
b = Path(fp).exists()
#include <unistd.h>
#include <stdbool.h>
bool b = (access(_fp, F_OK) == 0) ? true : false;
  inquire (file=fp,exist=b)
boolean b = new File(fb).exists();
(require '[ :as io])
(let [b (.exists (io/file fp))]